From c950886bc2e6a70df941991f60211ec7ca21ce47 Mon Sep 17 00:00:00 2001 From: Chris Rose Date: Sun, 7 Aug 2022 08:08:14 -0700 Subject: [PATCH 1/2] ci: allow workflow dispatch to trigger release --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 555bd1a..31f4ff0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,9 @@ jobs: needs: - pure-python-wheel-and-sdist runs-on: ubuntu-latest - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + if: | + (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')) || + (github.event_name == 'workflow_dispatch' && startsWith(github.event.ref, 'refs/tags')) steps: - uses: actions/download-artifact@v2 From ad275671860aa89706aff21c60d33b8115e07970 Mon Sep 17 00:00:00 2001 From: Chris Rose Date: Sun, 7 Aug 2022 08:14:53 -0700 Subject: [PATCH 2/2] ci: switch to the production PyPi endpoint --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 31f4ff0..66c92ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v2 with: - # Fetch all tags + # Fetch all tags; this is needed for hatch-vcs fetch-depth: 0 - name: Install build dependencies @@ -53,5 +53,4 @@ jobs: with: skip_existing: true user: __token__ - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: "https://test.pypi.org/legacy/" + password: ${{ secrets.PYPI_API_TOKEN }}