Publish Zensical Docs #110
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
| # Workflow to conditionally publish a Zensical project | |
| # | |
| # Manual trigger | |
| name: Publish Zensical Docs | |
| on: | |
| workflow_dispatch: # Manually trigger workflow | |
| # Run work flow conditional on linter workflow success | |
| workflow_run: | |
| workflows: | |
| - "MegaLinter" | |
| paths: | |
| - 'docs/**' | |
| - 'includes/**' | |
| - 'overrides/**' | |
| - 'mkdocs.yaml' | |
| - 'zensical.toml' | |
| branches: | |
| - main | |
| types: | |
| - completed | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/configure-pages@v6 | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - run: pip install zensical catppuccin-zensical | |
| - run: zensical build --clean | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: site | |
| - uses: actions/deploy-pages@v5 |