Skip to content

Commit

Permalink
Update pypi tokens (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins authored Sep 11, 2024
1 parent af20073 commit cc6fb9f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@ jobs:
deploy:
needs: [test]
runs-on: ubuntu-latest
# Run on a push to a tag or main
if: >
github.event_name == 'push' &&
(startsWith(github.event.ref, 'refs/tags') ||
github.event.ref == 'refs/heads/main')
steps:
- name: Set up Python 3.11
uses: actions/setup-python@v5
Expand All @@ -102,16 +96,16 @@ jobs:
run: poetry build

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.test_pypi_token }}
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
continue-on-error: true

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.pypi_token }}
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit cc6fb9f

Please sign in to comment.