From e68c1c7ad83b4be46af86a0bb3f6128525d6771b Mon Sep 17 00:00:00 2001 From: Turo Mikkonen Date: Thu, 11 Feb 2021 16:52:41 +0200 Subject: [PATCH] fix(CI): pypi deploy --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 85a5149..f5be0e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,9 +32,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: casperdcl/deploy-pypi@v1 - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + - uses: actions/setup-python@v2 + - uses: casperdcl/deploy-pypi@v2 with: password: ${{ secrets.PYPI_TOKEN }} build: true + # only upload if a tag is pushed (otherwise just build & check) + upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }} \ No newline at end of file