Skip to content

Commit

Permalink
PyPI upload workflow uses thrusted publisher instead of PyPI API token.
Browse files Browse the repository at this point in the history
Signed-off-by: rafa-be <[email protected]>
  • Loading branch information
rafa-be committed Oct 1, 2024
1 parent f97ffc0 commit dc488d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ permissions:

jobs:
deploy:

runs-on: ubuntu-latest

environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Checkout code
Expand All @@ -30,8 +31,4 @@ jobs:
run: python -m build

- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine upload dist/*
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion scaler/about.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.8.4"
__version__ = "1.8.5"

0 comments on commit dc488d2

Please sign in to comment.