chore: update version to 1.20.6 in pixi.lock and modify release proce… #333
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 build and deploy | |
| on: | |
| push: | |
| branches: [ master ] | |
| tags: ['*'] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| concurrency: | |
| group: CI-docs-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-latest-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| locked: false | |
| environments: docs | |
| cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | |
| activate-environment: docs | |
| - name: Build Documentation | |
| run: | | |
| set -e | |
| cd docs | |
| sphinx-build -M html . _build -W --keep-going -a -t DEV_BUILD | |
| cd .. | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: dev-version | |
| path: docs/_build/html | |
| build-tagged-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| # - name: Checkout last tagged version | |
| # run: | | |
| # git checkout $(git describe --tags `git rev-list --tags --max-count=1`); | |
| - uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| locked: false | |
| environments: docs | |
| cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | |
| activate-environment: docs | |
| - name: Build Documentation | |
| run: | | |
| cd docs | |
| sphinx-build -M html . _build -a | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: tagged-version | |
| path: docs/_build/html | |
| prepare-pages: | |
| needs: [build-latest-docs, build-tagged-docs] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: tagged-version | |
| path: public | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: dev-version | |
| path: public/dev | |
| - uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: public | |
| deploy: | |
| needs: prepare-pages | |
| if: github.ref == 'refs/heads/master' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |