From 6b35dff3138648cabf7d295406e1fea0f6f0c14e Mon Sep 17 00:00:00 2001 From: Michael Chow Date: Sat, 18 Dec 2021 16:55:39 -0500 Subject: [PATCH] fix(ci): test release detection --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 381e40a5..169a6707 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,7 +122,7 @@ jobs: # test deploy ---- - name: "Test Deploy to PyPI" uses: pypa/gh-action-pypi-publish@release/v1 - if: startsWith('TEST', github.event.release.name) + if: startsWith(github.event.release.name, 'TEST') with: user: __token__ password: ${{ secrets.PYPI_TEST_API_TOKEN }} @@ -131,7 +131,7 @@ jobs: # prod deploy ---- - name: "Deploy to PyPI" uses: pypa/gh-action-pypi-publish@master - if: "!startsWith('TEST', github.event.release.name)" + if: "!startsWith(github.event.release.name, 'TEST')" with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }}