From 13c697bd23443814f9f5276f820b0aa0b6987a6c Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 12 Mar 2024 20:27:02 -0400 Subject: [PATCH 1/8] add pypa/gh-action-pypi-publish --- .github/workflows/miniupnpc_wheels.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/miniupnpc_wheels.yml b/.github/workflows/miniupnpc_wheels.yml index c35a6cd..d359ede 100644 --- a/.github/workflows/miniupnpc_wheels.yml +++ b/.github/workflows/miniupnpc_wheels.yml @@ -224,3 +224,24 @@ jobs: name: wheel-${{ env.FILE_NAME }} path: ./dist if-no-files-found: error + + upload: + name: ${{ matrix.os.emoji }} 📦 Build ${{ matrix.arch.name }} ${{ matrix.python.major-dot-minor }} + runs-on: ubuntu-latest + needs: build + + steps: + - name: Download Results + uses: actions/download-artifact@v4 + with: + merge-multiple: true + pattern: wheel-* + path: dist/ + + - name: Publish distribution to PyPI + # TODO: identify the desired condition + if: false + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ + skip-existing: true From e6989a6464b43605508fb90913c700f0d88e144c Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 12 Mar 2024 20:31:41 -0400 Subject: [PATCH 2/8] enable verbose and print-hash --- .github/workflows/miniupnpc_wheels.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/miniupnpc_wheels.yml b/.github/workflows/miniupnpc_wheels.yml index d359ede..34d4bad 100644 --- a/.github/workflows/miniupnpc_wheels.yml +++ b/.github/workflows/miniupnpc_wheels.yml @@ -244,4 +244,6 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: dist/ + print-hash: true skip-existing: true + verbose: true From 79206bd66597582f2ebac7c366c20f431d95e135 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 12 Mar 2024 20:32:34 -0400 Subject: [PATCH 3/8] ls -la dist/ --- .github/workflows/miniupnpc_wheels.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/miniupnpc_wheels.yml b/.github/workflows/miniupnpc_wheels.yml index 34d4bad..c1cee51 100644 --- a/.github/workflows/miniupnpc_wheels.yml +++ b/.github/workflows/miniupnpc_wheels.yml @@ -238,6 +238,10 @@ jobs: pattern: wheel-* path: dist/ + - name: List all artifacts + run: | + ls -la dist/ + - name: Publish distribution to PyPI # TODO: identify the desired condition if: false From a5b7529e591c41ca07d9dbb9c0c4a92b882ac68d Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 12 Mar 2024 20:55:12 -0400 Subject: [PATCH 4/8] correct upload job name --- .github/workflows/miniupnpc_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/miniupnpc_wheels.yml b/.github/workflows/miniupnpc_wheels.yml index c1cee51..53cc6ed 100644 --- a/.github/workflows/miniupnpc_wheels.yml +++ b/.github/workflows/miniupnpc_wheels.yml @@ -226,7 +226,7 @@ jobs: if-no-files-found: error upload: - name: ${{ matrix.os.emoji }} 📦 Build ${{ matrix.arch.name }} ${{ matrix.python.major-dot-minor }} + name: 🚀 Upload runs-on: ubuntu-latest needs: build From 813ca05045760eb4190f98e7866a04417d0aa44b Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 12 Mar 2024 20:56:30 -0400 Subject: [PATCH 5/8] name tweak --- .github/workflows/miniupnpc_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/miniupnpc_wheels.yml b/.github/workflows/miniupnpc_wheels.yml index 53cc6ed..260db48 100644 --- a/.github/workflows/miniupnpc_wheels.yml +++ b/.github/workflows/miniupnpc_wheels.yml @@ -242,7 +242,7 @@ jobs: run: | ls -la dist/ - - name: Publish distribution to PyPI + - name: Publish to PyPI # TODO: identify the desired condition if: false uses: pypa/gh-action-pypi-publish@release/v1 From caddfd9e70984864687c4807e4dfbb40ee264cdb Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 12 Mar 2024 20:56:44 -0400 Subject: [PATCH 6/8] name tweak --- .github/workflows/miniupnpc_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/miniupnpc_wheels.yml b/.github/workflows/miniupnpc_wheels.yml index 260db48..001c8e2 100644 --- a/.github/workflows/miniupnpc_wheels.yml +++ b/.github/workflows/miniupnpc_wheels.yml @@ -238,7 +238,7 @@ jobs: pattern: wheel-* path: dist/ - - name: List all artifacts + - name: List artifacts run: | ls -la dist/ From dce79316fe6b0185c17716d0786c65968824b14d Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 12 Mar 2024 20:56:55 -0400 Subject: [PATCH 7/8] name tweak --- .github/workflows/miniupnpc_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/miniupnpc_wheels.yml b/.github/workflows/miniupnpc_wheels.yml index 001c8e2..090e50a 100644 --- a/.github/workflows/miniupnpc_wheels.yml +++ b/.github/workflows/miniupnpc_wheels.yml @@ -231,7 +231,7 @@ jobs: needs: build steps: - - name: Download Results + - name: Download results uses: actions/download-artifact@v4 with: merge-multiple: true From 8a468034c0db85c1955cd64ec62d98f0d7197b0d Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Thu, 9 May 2024 09:51:53 -0400 Subject: [PATCH 8/8] Update miniupnpc_wheels.yml --- .github/workflows/miniupnpc_wheels.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/miniupnpc_wheels.yml b/.github/workflows/miniupnpc_wheels.yml index 090e50a..f7f324d 100644 --- a/.github/workflows/miniupnpc_wheels.yml +++ b/.github/workflows/miniupnpc_wheels.yml @@ -243,8 +243,7 @@ jobs: ls -la dist/ - name: Publish to PyPI - # TODO: identify the desired condition - if: false + if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: dist/