fix(init scripts): Adds example hook script #3
This file contains hidden or 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: Publish GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-gh-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v4 | |
- name: Install devbox | |
uses: jetpack-io/[email protected] | |
- name: Setup Python environment | |
run: | | |
devbox run -- poetry install | |
- name: Build and deploy docs | |
run: | | |
devbox run -- poetry run mkdocs gh-deploy --force --no-history --remote-branch gh-pages |