Skip to content

caddy: update hui redirection #155

caddy: update hui redirection

caddy: update hui redirection #155

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: info@software-challenge.de
full_commit_message: ${{steps.build.outputs.message}}