Skip to content

Commit

Permalink
Update release workflow to PyPI Trusted Publisher mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Neverhorst committed Aug 17, 2024
1 parent 1aa3f28 commit 504159d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:

steps:
- name: checkout tag
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- name: setup Python environment
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
architecture: 'x64'
- name: install dependencies
run: |
Expand All @@ -27,8 +27,4 @@ jobs:
run: |
python setup.py sdist bdist_wheel
- name: upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 504159d

Please sign in to comment.