From 145213ff3b5890a503d01c3b9dd942fa30a56ba7 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Sat, 18 Sep 2021 20:55:09 -1000 Subject: Remove unnecessary gh-pages workflow The asciidoc-py website is now stored in a separate repo, so we no longer need to build the gh-pages as part of this repo. Signed-off-by: Matthew Peveler --- .github/workflows/ghpages.yml | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/ghpages.yml (limited to '.github') diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml deleted file mode 100644 index 5b72b9b..0000000 --- a/.github/workflows/ghpages.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Publish to gh-pages - -on: - push: - branches: [ main ] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Create Docker image - run: docker build . -t asciidoc - - - name: Get short SHA - id: slug - run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" - - - name: Build gh-pages - run: docker run --rm -v $(pwd):/srv/asciidoc asciidoc /bin/bash -c "cd /srv/asciidoc; bash build_website.sh" - - - name: Fix permissions - run: sudo chown -R $(id -u):$(id -g) gh-pages - - - name: Commit files - run: | - cd gh-pages - git config --local user.email "matt.peveler@gmail.com" - git config --local user.name "MasterOdin" - git add . || : - git commit -s -m "deploy: ${{ steps.slug.outputs.sha8 }}" -a || : - - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - directory: gh-pages - branch: gh-pages -- cgit v1.2.1