refactor: implement StrategyProvide #35
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: Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - zensical.toml | |
| - docs/** | |
| workflow_dispatch: | |
| 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: | |
| - name: Configure GitHub pages | |
| uses: actions/configure-pages@v6 | |
| - name: Checkount main branch | |
| uses: actions/checkout@v6 | |
| - name: Setup Python 3.x | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - name: Install Zensical dependency | |
| run: pip install zensical | |
| - name: Build documentation website | |
| run: zensical build --clean | |
| - name: Upload website artifacts | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: site | |
| - name: Deploy website | |
| uses: actions/deploy-pages@v5 | |
| id: deployment |