Skip to content

Commit

Permalink
Update python-upload-package.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Kreuwel <[email protected]>
  • Loading branch information
FrankKr authored Jan 3, 2024
1 parent 9b5d80a commit ecb8245
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/python-upload-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# Checkout
- name: Checkout code
Expand All @@ -24,10 +28,7 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine
# Build and publish
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Build
run: python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit ecb8245

Please sign in to comment.