From f0f1ac37b6863172ebfdafd291b45e391af9997d Mon Sep 17 00:00:00 2001 From: Deb Angst Date: Tue, 2 Aug 2022 14:47:17 -0500 Subject: [PATCH 1/2] fix: test publish --- .github/workflows/build-test-deploy.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index 7502cc5f..9f8e0482 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -77,6 +77,17 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx semantic-release #--dry-run + + - name: Build project run: | - npx semantic-release --dry-run - echo "Ran semantic-release dry-run" + pip install -U pip + pip install build + python -m build + + - name: Publish to pypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: ${{ secrets.PYPI_USER }} + password: ${{ secrets.PYPI_TOKEN }} + repository_url: https://upload.pypi.org/legacy/ From d02af66d99e22dfc0694809f0eb283e855879548 Mon Sep 17 00:00:00 2001 From: Deb Angst Date: Tue, 2 Aug 2022 14:52:05 -0500 Subject: [PATCH 2/2] Update build-test-deploy.yml --- .github/workflows/build-test-deploy.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index 9f8e0482..bef36adc 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -85,9 +85,9 @@ jobs: pip install build python -m build - - name: Publish to pypi - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: ${{ secrets.PYPI_USER }} - password: ${{ secrets.PYPI_TOKEN }} - repository_url: https://upload.pypi.org/legacy/ + - name: Publish to pypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: ${{ secrets.PYPI_USER }} + password: ${{ secrets.PYPI_TOKEN }} + repository_url: https://upload.pypi.org/legacy/