Pages #56
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: Pages | |
on: | |
# Only run after a successful release | |
workflow_call: | |
# Allow running manually | |
workflow_dispatch: | |
permissions: | |
contents: write | |
concurrency: pages | |
jobs: | |
docs: | |
uses: ./.github/workflows/docs.yaml | |
deploy: | |
runs-on: ubuntu-latest | |
needs: | |
- docs | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup | Zola | |
run: | | |
wget -qO- https://github.com/getzola/zola/releases/download/v0.18.0/zola-v0.18.0-x86_64-unknown-linux-gnu.tar.gz | tar -xzf - | |
sudo install zola /usr/local/bin/zola | |
- name: Build | Zola | |
run: | | |
cd site | |
zola build | |
- name: Fetch | Docs | |
id: fetch-docs | |
uses: actions/download-artifact@v4 | |
with: | |
name: book | |
path: site/public/guide | |
- name: Dump | Site | |
run: | | |
find ./site/public | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site/public | |
cname: trunkrs.dev |