Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #80 from sethmlarson/trusted-publisher
Browse files Browse the repository at this point in the history
Use trusted publisher in publishing workflow
  • Loading branch information
freakboy3742 authored May 2, 2023
2 parents 043d57c + 9c497ec commit 0a6ec18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
# This permission is required for trusted publishing.
id-token: write
steps:
- uses: actions/checkout@v3.5.2

Expand All @@ -27,8 +30,4 @@ jobs:
tox -e package
- name: Publish release
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
tox -e publish
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions changes/80.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Release processes were changed to use Trusted Publishing.
10 changes: 0 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,3 @@ commands =
check-manifest -v
python -m build --sdist --wheel --outdir dist
python -m twine check dist/*

[testenv:publish]
deps =
wheel
twine
passenv =
TWINE_USERNAME
TWINE_PASSWORD
commands =
python -m twine upload dist/*

0 comments on commit 0a6ec18

Please sign in to comment.