Skip to content

Commit

Permalink
CI: use new 2AF publishing to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Dec 13, 2023
1 parent d736fba commit c428f7b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
build:

runs-on: 'ubuntu-latest'
environment: release
permissions:
contents: write
id-token: write
strategy:
matrix:
platform:
Expand Down Expand Up @@ -51,7 +55,11 @@ jobs:
deploy:

runs-on: 'ubuntu-latest'
environment: release
needs: [ build ]
permissions:
contents: write
id-token: write

steps:

Expand All @@ -78,12 +86,10 @@ jobs:
pip install twine
# PyPI package
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m twine upload wheelhouse/*
- name: Publish Python package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheelhouse/

# Documentation
- name: Setup Ubuntu
Expand Down

0 comments on commit c428f7b

Please sign in to comment.