Merge pull request #11 from HauserGroup/actual-actual-o2pls #7
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: Docs | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Deploy via the GitHub Pages "GitHub Actions" source (set it in repo | |
| # Settings -> Pages). Zensical has no `gh-deploy`; we build and upload the | |
| # site as a Pages artifact instead. | |
| 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: astral-sh/setup-uv@v8.1.0 | |
| with: | |
| python-version: "3.13" | |
| enable-cache: true | |
| - run: uv sync --dev | |
| - run: uv run zensical build --clean | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: site | |
| - uses: actions/deploy-pages@v5 | |
| id: deployment |