Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed Sep 20, 2023
1 parent f43ea6a commit 06a8495
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ on:
types: [published]

jobs:

pypi:
runs-on: ubuntu-22.04
environment: release
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand All @@ -27,10 +30,5 @@ jobs:
python -c 'import jinja2;jinja2.Template(open("setup.j2").read()).stream(version="${{ steps.pkg_version.outputs.data }}").dump("setup.py")'
python setup.py sdist bdist_wheel
- name: Twine check
run: |
twine check dist/*
- name: Upload to PyPI
run: |
twine upload dist/* -u ${{ secrets.PYPI_LOGIN }} -p ${{ secrets.PYPI_PASSWORD }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 06a8495

Please sign in to comment.