Skip to content

Commit 8c9f99e

Browse files
committed
Fix the usage of the pypa/gh-action-pypi-publish action
Fix the used version. Switch to trusted publisher instead of password authentication.
1 parent 538d710 commit 8c9f99e

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@ jobs:
1010
deploy:
1111
name: Deploy to PYPI
1212
runs-on: ubuntu-latest
13+
environment:
14+
name: pypi
15+
url: https://pypi.org/project/metar-taf-parser-mivek/
16+
permissions:
17+
id-token: write
1318
steps:
1419
- uses: actions/checkout@v4
1520

1621
- name: Set up Python
1722
uses: actions/setup-python@v5
1823
with:
19-
python-version: '3.7'
24+
python-version: '3.11'
2025

2126
- name: Install dependencies
2227
run: |
@@ -28,6 +33,4 @@ jobs:
2833
python -m build --sdist --wheel --outdir dist/
2934
3035
- name: Publish to PyPI
31-
uses: pypa/gh-action-pypi-publish@master
32-
with:
33-
password: ${{ secrets.PYPI_PASSWORD }}
36+
uses: pypa/gh-action-pypi-publish@v1.8.11

0 commit comments

Comments
 (0)