Skip to content

Commit

Permalink
feat: remove tokens from release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Apr 2, 2024
1 parent b80ce2d commit 2603182
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:
jobs:
release:
runs-on: ubuntu-latest
environment: PyPI
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -26,11 +27,8 @@ jobs:
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
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
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 2603182

Please sign in to comment.