chore(deps): bump the all group with 2 updates (#975) #404
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 docs via GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| paths: | |
| # Only rebuild website when docs or python files have changed | |
| - 'README.md' | |
| - 'CHANGES.md' | |
| - 'CONTRIBUTING.md' | |
| - 'docs/**' | |
| - 'rio_tiler/**.py' | |
| - .github/workflows/deploy_mkdocs.yml | |
| concurrency: | |
| group: docs-gh-pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Deploy docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| with: | |
| version: "0.9.*" | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: | | |
| uv sync --group docs | |
| - name: Set module version | |
| id: module | |
| run: | | |
| echo version=$(uv run python -c'import rio_tiler; print(rio_tiler.__version__)') >> $GITHUB_OUTPUT | |
| - name: Configure Git user | |
| run: | | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| - name: Fetch gh-pages repository | |
| run: | | |
| git fetch origin gh-pages --depth=1 | |
| - name: Deploy documentation (main → latest alias) | |
| if: github.ref_type == 'branch' | |
| run: uv run mike deploy latest --update-aliases --push --config-file docs/mkdocs.yml | |
| - name: Deploy documentation (tag → version only) | |
| if: github.ref_type == 'tag' | |
| run: uv run mike deploy ${{ steps.module.outputs.version }} --push --config-file docs/mkdocs.yml |