Skip to content

Commit

Permalink
Fix the usage of the pypa/gh-action-pypi-publish action
Browse files Browse the repository at this point in the history
Fix the used version.
Switch to trusted publisher instead of password authentication.
  • Loading branch information
mivek committed Jan 4, 2024
1 parent 538d710 commit 8c9f99e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ jobs:
deploy:
name: Deploy to PYPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/metar-taf-parser-mivek/
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.11'

- name: Install dependencies
run: |
Expand All @@ -28,6 +33,4 @@ jobs:
python -m build --sdist --wheel --outdir dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_PASSWORD }}
uses: pypa/[email protected]

0 comments on commit 8c9f99e

Please sign in to comment.