summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2021-09-18 20:55:09 -1000
committerMatthew Peveler <matt.peveler@gmail.com>2021-09-18 20:55:09 -1000
commit145213ff3b5890a503d01c3b9dd942fa30a56ba7 (patch)
tree82355d44a9eade6b8e5161922a840c2c6165fa97
parent71b164ab46917e6e806c6000e21b62939dd8006a (diff)
downloadasciidoc-py3-145213ff3b5890a503d01c3b9dd942fa30a56ba7.tar.gz
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 <matt.peveler@gmail.com>
-rw-r--r--.github/workflows/ghpages.yml40
1 files changed, 0 insertions, 40 deletions
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