Remove View.blending (#31) #16
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 release documentation | |
| on: | |
| push: | |
| branches: [main] | |
| tags: [v*] | |
| permissions: | |
| contents: write | |
| pages: write | |
| jobs: | |
| deploy: | |
| runs-on: macos-latest # nicer screenshots | |
| if: github.repository == 'pyapp-kit/scenex' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Config git | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email github-actions[bot]@users.noreply.github.com | |
| git fetch origin gh-pages --depth=1 | |
| - name: Deploy release docs | |
| if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| run: | | |
| VERSION=$(git describe --abbrev=0 --tags) | |
| # check if rc or beta release | |
| if [[ $VERSION == *"rc"* ]] || [[ $VERSION == *"beta"* ]]; then | |
| export DOCS_PRERELEASE=true | |
| echo "Deploying pre-release docs" | |
| uv run mike deploy --push --update-aliases $VERSION rc | |
| else | |
| echo "Deploying release docs" | |
| uv run mike deploy --push --update-aliases $VERSION latest | |
| fi | |
| env: | |
| DOCS_DEV: false | |
| - name: Deploy dev docs | |
| if: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
| run: uv run mike deploy --push --update-aliases dev | |
| env: | |
| DOCS_DEV: true | |
| # - name: Update default release docs | |
| # run: mike set-default --push latest |