3.6.0a0 #22
Workflow file for this run
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: Release | ||
| on: | ||
| workflow_dispatch: | ||
| release: | ||
| types: | ||
| - created | ||
| jobs: | ||
| release: | ||
| name: release | ||
| runs-on: ubuntu-latest | ||
| if: ${{ github.repository }} == 'stac-utils/stac-pydantic' | ||
|
Check warning on line 13 in .github/workflows/release.yml
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | ||
| with: | ||
| version: "0.9.*" | ||
| enable-cache: true | ||
| python-version: '3.14' | ||
| - name: Install dependencies | ||
| run: | | ||
| uv sync --group deploy | ||
| - name: Set tag version | ||
| id: tag | ||
| run: | | ||
| echo "version=${GITHUB_REF#refs/*/}" | ||
| echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
| - name: Set module version | ||
| id: module | ||
| run: | | ||
| echo "version=$(uv run hatch --quiet version)" >> $GITHUB_OUTPUT | ||
| - name: Build and publish | ||
| if: ${{ steps.tag.outputs.version }} == ${{ steps.module.outputs.version}} | ||
|
Check warning on line 40 in .github/workflows/release.yml
|
||
| env: | ||
| HATCH_INDEX_USER: ${{ secrets.PYPI_STACUTILS_USERNAME }} | ||
| HATCH_INDEX_AUTH: ${{ secrets.PYPI_STACUTILS_PASSWORD }} | ||
| run: | | ||
| uv run hatch build | ||
| uv run hatch publish | ||