Skip to content

Commit

Permalink
Trusted publisher (#319)
Browse files Browse the repository at this point in the history
* test publishing

* removed too many stuff

* temporarily limiting the number of wheels

* add pypi and revert temporary changes

* changelog

* revert previous changes
  • Loading branch information
MarcAntoineSchmidtQC authored Oct 17, 2023
1 parent bf61132 commit f5461b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'published'
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment:
name: release
url: https://test.pypi.org/p/tabmat
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -77,21 +82,21 @@ jobs:

- uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.GH_TESTPYPI_UPLOAD }}
repository-url: https://test.pypi.org/legacy/

upload_pypi:
if: github.event_name == 'release' && github.event.action == 'published'
needs: [build_wheels, build_sdist, upload_testpypi]
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/tabmat
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.GH_PYPI_UPLOAD }}
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Changelog
Unreleased
----------

**Other changes:**

- Pypi release is now done using trusted publisher.

3.1.12 - 2023-10-16
-------------------
Expand Down

0 comments on commit f5461b6

Please sign in to comment.