diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d355cfe..5ca7305 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,7 +12,11 @@ concurrency: jobs: release: runs-on: ubuntu-latest - environment: PyPI + environment: + name: pypi + url: https://pypi.org/p/stac-asset + permissions: + id-token: write steps: - name: Checkout uses: actions/checkout@v4 @@ -24,11 +28,5 @@ jobs: run: pip install build - name: Build run: python -m build - - name: Publish to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ - skip-existing: true - name: Publish to PyPI - if: startsWith(github.ref, 'refs/tags/v') uses: pypa/gh-action-pypi-publish@release/v1