From 77619321985dbc75df21fe64e8d94102de25de29 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 30 Oct 2024 12:51:31 +0000 Subject: [PATCH 1/2] use GH build art[ie]facts in lieu of testpypi --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c71d592..3380994 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,8 +58,7 @@ jobs: with: build: -s python -o dist upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} - - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - uses: casperdcl/deploy-pypi@v2 + - uses: actions/upload-artifact@v4 with: - url: https://test.pypi.org/legacy/ - password: ${{ secrets.TEST_PYPI_TOKEN }} + name: python-petsird + path: dist/** From d625b3d3a26e1b5bd48f1690ff0b77570959a7f0 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 30 Oct 2024 13:00:17 +0000 Subject: [PATCH 2/2] build wheels too --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3380994..fb07fc1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: ./petsird_analysis test.h5 - uses: casperdcl/deploy-pypi@v2 with: - build: -s python -o dist + build: python -o dist upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} - uses: actions/upload-artifact@v4 with: