From a02359417af4707e34d1343e688a05716cc402f7 Mon Sep 17 00:00:00 2001 From: David Barnes <barnesdavidj@gmail.com> Date: Sun, 16 Jun 2024 12:18:41 -0400 Subject: [PATCH] Update release workflow to push to actual pypi. Add commented job to push to test pypi that can be used if needed by uncommenting. --- .github/workflows/release.yaml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7e528a0..7f6fa64 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,7 +38,7 @@ jobs: runs-on: ubuntu-latest environment: name: release - url: https://test.pypi.org/p/django-dump-die + url: https://pypi.org/p/django-dump-die needs: - release-build permissions: @@ -51,9 +51,32 @@ jobs: name: release-dists path: dist/ - - name: Publish release distributions to TestPyPI + - name: Publish release distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - repository-url: https://test.pypi.org/legacy/ - skip-existing: true - verbose: true + repository-url: https://pypi.org/legacy/ + + # test-pypi-publish: + # name: Upload release to Test PyPI + # runs-on: ubuntu-latest + # environment: + # name: release + # url: https://test.pypi.org/p/django-dump-die + # needs: + # - release-build + # permissions: + # id-token: write + + # steps: + # - name: Retrieve release distributions + # uses: actions/download-artifact@v4 + # with: + # name: release-dists + # path: dist/ + + # - name: Publish release distributions to TestPyPI + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # repository-url: https://test.pypi.org/legacy/ + # skip-existing: true + # verbose: true -- GitLab