Skip to content

Commit

Permalink
chore: fixing PyPI deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
athril committed Jan 23, 2024
1 parent 2476976 commit 37431b4
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ jobs:
needs: check
runs-on: ubuntu-latest

# # Specifying a GitHub environment for PyPI release is optional, but strongly encouraged
# environment: release
# permissions:
# Specifying a GitHub environment for PyPI release is optional, but strongly encouraged
environment:
name: pypi
url: https://pypi.org/p/sparc.client
permissions:
# # IMPORTANT: this permission is mandatory for trusted publishing on PyPI
# id-token: write
id-token: write
contents: write
packages: write
steps:
- name: Set up Python 3.10
uses: actions/setup-python@v4
Expand Down Expand Up @@ -87,10 +91,10 @@ jobs:
# skip_existing: true

- name: Publish Distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1
# with: #not needed with new PyPI publishing
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}

- name: Create Release
uses: ncipollo/[email protected]
Expand Down

0 comments on commit 37431b4

Please sign in to comment.