Skip to content

Commit

Permalink
Update release for pypi access controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Lubken authored and jlubken committed Aug 20, 2024
1 parent 6c4d6b4 commit a781eb9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: "https://pypi.org/p/cfgenvy"
permissions:
id-token: write

steps:
- name: checkout
Expand All @@ -19,15 +24,15 @@ jobs:
- name: pre-release
if: ${{ github.event.release.prerelease }}
uses: pypa/gh-action-pypi-publish@v1.5.0
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: release
if: ${{ !github.event.release.prerelease }}
uses: pypa/gh-action-pypi-publish@v1.5.0
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a781eb9

Please sign in to comment.