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 7d50e0f commit a4237f1
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 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
- name: Build and publish to PyPI
uses: greenbone/actions/pypi-upload@v2
with:
python-version: "3.10"
- 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/*
pypi-token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit a4237f1

Please sign in to comment.