Skip to content

hyperbook: cleanup old gui images #154

hyperbook: cleanup old gui images

hyperbook: cleanup old gui images #154

Workflow file for this run

name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Hyperbook
run: |
cd hyperbook
npx --yes --legacy-peer-deps 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@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: live
publish_dir: hyperbook/.hyperbook/out
user_name: "GitHub Publish Workflow"
user_email: [email protected]
full_commit_message: ${{steps.build.outputs.message}}