From 4b65cc169ef8bd11cc9b645674cb769ed8b5ac01 Mon Sep 17 00:00:00 2001 From: Danilo Horta Date: Tue, 7 Jan 2025 13:55:06 +0000 Subject: [PATCH] Add PyPI env setup to release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 📜 --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5115e1..8b8b460 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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