Skip to content

3.6.0a0

3.6.0a0 #22

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Release

Workflow syntax warning

.github/workflows/release.yml (Line: 13, Col: 9): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
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

View workflow run for this annotation

GitHub Actions / Release

Workflow syntax warning

.github/workflows/release.yml (Line: 40, Col: 13): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
env:
HATCH_INDEX_USER: ${{ secrets.PYPI_STACUTILS_USERNAME }}
HATCH_INDEX_AUTH: ${{ secrets.PYPI_STACUTILS_PASSWORD }}
run: |
uv run hatch build
uv run hatch publish