Skip to content

Commit

Permalink
Change: Use new pypi-upload action for releasing the Python package
Browse files Browse the repository at this point in the history
Avoid code duplication by using the new pypi-upload action for building
and releasing the Python package.
  • Loading branch information
bjoernricks committed Apr 20, 2023
1 parent b7785f9 commit 02ba372
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
python -m pip install --upgrade twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
poetry build
twine upload dist/*
- name: Build and publish to PyPI
uses: greenbone/actions/pypi-upload@v2
with:
pypi-token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 02ba372

Please sign in to comment.