diff options
Diffstat (limited to '.github/workflows/ghpages.yml')
-rw-r--r-- | .github/workflows/ghpages.yml | 40 |
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 |