From 3f4881f4181f10ff75b84986909024b833397d25 Mon Sep 17 00:00:00 2001 From: erikayasuda Date: Fri, 18 Oct 2024 15:00:28 -0400 Subject: [PATCH] updated pypi upload and using legacy pypi url to test --- .github/workflows/build_deploy.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index f1ef5cf..3339224 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -1,6 +1,9 @@ name: Build on: + push: + branches: + - erikayasuda/fix-upload-pypi pull_request: release: types: @@ -29,6 +32,7 @@ jobs: - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 with: + name: artifact-wheel path: dist/*.whl build_sdist: @@ -51,6 +55,7 @@ jobs: - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 with: + name: artifact-sdist path: dist/*.tar.gz upload_pypi: @@ -60,11 +65,14 @@ jobs: steps: - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 with: - name: artifact + name: artifact-sdist + path: dist + - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 + with: + name: artifact-wheel path: dist - - uses: pypa/gh-action-pypi-publish@master with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} - # To test: repository_url: https://test.pypi.org/legacy/ + repository_url: https://test.pypi.org/legacy/