Skip to content

Commit

Permalink
Update GitHub Actions workflow for publishing to PyPI
Browse files Browse the repository at this point in the history
Simplify job name and upgrade action versions. Changed the job name to be more concise, updated actions/checkout from v2 to v4, and upgraded the pypa/gh-action-pypi-publish action from v1.5.0 to v1.9.0. This ensures compatibility with the latest features and bug fixes.
  • Loading branch information
andoludo committed Sep 1, 2024
1 parent 4b17ee2 commit 6b6edeb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
name: Build and publish to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: pypi

Expand All @@ -30,7 +30,4 @@ jobs:
poetry build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: __token__
password: ${{ secrets.pypi_password }}
uses: pypa/gh-action-pypi-publish@v1.9.0

0 comments on commit 6b6edeb

Please sign in to comment.