Unify hand in environment explanations (#100) #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Hyperbook | |
run: | | |
cd hyperbook | |
npx hyperbook setup | |
- name: Build documentation | |
id: build | |
run: | | |
cd hyperbook | |
npx hyperbook build | |
echo "::set-output name=message::$(git log --format='Deploy %h %<|(50,trunc)%f' -1)" | |
- name: Push generated documentation to live branch | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.PUSH_TOKEN }} | |
publish_branch: live | |
publish_dir: hyperbook/.hyperbook/out | |
user_name: "GitHub Publish Action" | |
user_email: [email protected] | |
full_commit_message: ${{steps.build.outputs.message}} |