chore: bump version to 0.10.0 #200
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '**' | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout gh-pages | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: gh-pages | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Configure Git Credentials | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: '3.13' | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --locked --only-group docs | |
| # deploy github pages (dev) | |
| - name: Deploy GitHub Pages (dev) | |
| if: "github.ref == 'refs/heads/main'" | |
| run: uv run mike deploy -b gh-pages dev --push | |
| # deploy github pages (release) | |
| - if: startsWith(github.ref, 'refs/tags/') | |
| id: check-version | |
| uses: samuelcolvin/check-python-version@v4.1 | |
| with: | |
| version_file_path: 'ecologits/__init__.py' | |
| skip_env_check: true | |
| - name: Deploy GitHub Pages (release) | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: uv run mike deploy -b gh-pages ${{ steps.check-version.outputs.VERSION_MAJOR_MINOR }} latest --update-aliases --push |