Skip to content

Commit

Permalink
Record current git revision in www/head
Browse files Browse the repository at this point in the history
type: documentation
  • Loading branch information
casey committed Apr 8, 2020
1 parent 972a1ec commit 0469f7f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@ jobs:
mdbook-version: latest
- name: Build Book
run: mdbook build book --dest-dir ../www/book
- name: Deploy Book
- name: Record Git Revision
if: github.ref == 'refs/heads/master'
run: git rev-parse --verify HEAD > www/head
- name: Deploy Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{secrets.GITHUB_TOKEN}}
github_token: ${{secrets.GITHUB_TOKEN}}
publish_branch: gh-pages
publish_dir: ./www
publish_dir: ./www
- name: Package
id: package
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit 0469f7f

Please sign in to comment.