Skip to content

Commit

Permalink
Add PyPI env setup to release workflow
Browse files Browse the repository at this point in the history
- Added environment configuration for PyPI in release.yml 🌟
- Specified URL and id-token permission for enhanced security πŸ›‘οΈ
- Modified PyPI publishing step to include new packages-dir
- Enabled verbose mode for clearer logs in PyPI publish step πŸ“œ
  • Loading branch information
horta committed Jan 7, 2025
1 parent 3b58f9c commit 4b65cc1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ jobs:
make_linux_intel_pp_wheels, make_linux_arm_pp_wheels, make_macos_intel_wheels,
make_macos_arm_wheels, make_sdist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/deciphon-poster
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -164,5 +169,6 @@ jobs:

- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: poster/dist
skip-existing: true
verbose: true

0 comments on commit 4b65cc1

Please sign in to comment.