Skip to content

Commit 6fab730

Browse files
committed
Change: Use new pypi-upload action for releasing the Python package
Avoid code duplication by using the new pypi-upload action for building and releasing the Python package.
1 parent f2c3122 commit 6fab730

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/deploy-pypi.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,7 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- name: Set up Python
13-
uses: actions/setup-python@v4
14-
with:
15-
python-version: 3.8
16-
- name: Install dependencies
17-
run: |
18-
python -m pip install --upgrade pip
19-
python -m pip install --upgrade poetry
20-
python -m pip install --upgrade twine
21-
- name: Build and publish
22-
env:
23-
TWINE_USERNAME: __token__
24-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
25-
run: |
26-
poetry build
27-
twine upload dist/*
11+
- name: Build and publish to PyPI
12+
uses: greenbone/actions/pypi-upload@v2
13+
with:
14+
pypi-token: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)