From 6c91873714f0ea07d0f15ded2dd10584da265b68 Mon Sep 17 00:00:00 2001 From: Santiago Figueroa Manrique Date: Wed, 30 Apr 2025 17:09:09 +0200 Subject: [PATCH 1/3] [skip ci] test trusted publisher Signed-off-by: Santiago Figueroa Manrique --- .github/workflows/main.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d0bf93..796af73 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,10 +10,8 @@ jobs: name: "Upload latest libboost-headers version to PyPI" runs-on: ubuntu-latest permissions: - contents: read - env: - TWINE_USERNAME: ${{ secrets.PYPI_USER }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASS }} + contents: write + id-token: write # Required for Trusted Publishing steps: - uses: actions/checkout@v4 @@ -21,7 +19,7 @@ jobs: - name: Setup python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" architecture: x64 - name: Install dependencies @@ -69,9 +67,17 @@ jobs: - name: List assets run: ls ./wheelhouse/ -al - - name: Upload wheels - if: github.event_name == 'workflow_dispatch' - run: | - pip install twine - echo "Publish to PyPI..." - twine upload --verbose wheelhouse/* + - name: Upload assets to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + # To test, use the TestPyPI: + repository-url: https://test.pypi.org/legacy/ + # You must also create an account and project on TestPyPI, + # as well as set the trusted-publisher in the project settings: + # https://docs.pypi.org/trusted-publishers/adding-a-publisher/ + # To publish to the official PyPI repository, just keep + # repository-url commented out. + packages-dir: wheelhouse + skip-existing: true + print-hash: true + verbose: true From 8e7aa8a03b86f8231e84e1a4ff9f0582e1ebbd25 Mon Sep 17 00:00:00 2001 From: Santiago Figueroa Manrique Date: Wed, 30 Apr 2025 17:26:00 +0200 Subject: [PATCH 2/3] [skip ci] rename and remove testing Signed-off-by: Santiago Figueroa Manrique --- .github/workflows/{main.yml => ci.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{main.yml => ci.yml} (97%) diff --git a/.github/workflows/main.yml b/.github/workflows/ci.yml similarity index 97% rename from .github/workflows/main.yml rename to .github/workflows/ci.yml index 796af73..1c7bdb6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,7 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: # To test, use the TestPyPI: - repository-url: https://test.pypi.org/legacy/ + # repository-url: https://test.pypi.org/legacy/ # You must also create an account and project on TestPyPI, # as well as set the trusted-publisher in the project settings: # https://docs.pypi.org/trusted-publishers/adding-a-publisher/ From 28b90759f42168720a05754b87708cae5ffb19b8 Mon Sep 17 00:00:00 2001 From: Santiago Figueroa Manrique Date: Thu, 1 May 2025 13:13:35 +0200 Subject: [PATCH 3/3] empty to trigger ci Signed-off-by: Santiago Figueroa Manrique