From 7e423b668fb57ad6d4cf87bc56ad54cbceef17d1 Mon Sep 17 00:00:00 2001 From: skshetry Date: Mon, 7 Nov 2022 18:39:15 +0545 Subject: [PATCH] pkging: also post released packages to test.pypi.org --- .github/workflows/packages.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/packages.yaml b/.github/workflows/packages.yaml index e76d99318..34112b239 100644 --- a/.github/workflows/packages.yaml +++ b/.github/workflows/packages.yaml @@ -104,7 +104,7 @@ jobs: password: ${{ secrets.PYPI_TOKEN }} - name: Publish to Test PyPI - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }} uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.TEST_PYPI_TOKEN }}