Skip to content

Commit

Permalink
Update pypi.yml (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitorduz authored and twiecki committed Sep 10, 2024
1 parent 4ec3b4a commit dd01154
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
name: artifact
path: dist/*
test:
permissions:
id-token: write
name: upload to test PyPI
needs: [build]
runs-on: ubuntu-latest
Expand All @@ -57,8 +59,6 @@ jobs:
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- uses: actions/setup-python@v4
with:
Expand All @@ -71,6 +71,9 @@ jobs:
venv-test-pypi/bin/python -c "import pymc_marketing; assert pymc_marketing.__version__ == '${{ github.ref_name }}'"
publish:
environment: release
permissions:
id-token: write
name: upload release to PyPI
needs: [build, test]
runs-on: ubuntu-latest
Expand All @@ -81,6 +84,3 @@ jobs:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit dd01154

Please sign in to comment.