Skip to content

Commit

Permalink
fix(ci): add write perms
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Apr 2, 2024
1 parent 59733ca commit 61b25a9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 61b25a9

Please sign in to comment.