diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 035b0a5..95af724 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,8 +15,17 @@ jobs: strategy: max-parallel: 1 steps: + + - name: Display tag name + run: echo "Tag name is ${{ github.event.release.name }}" + + - name: Is TEST RELEASE + if: ${{ startsWith('test-',github.event.release.name) }} + run: echo "Is test release ${{ startsWith('test-',github.event.release.name) }}" + - name: Checkout uses: actions/checkout@v2 + - name: Retrieve wheel artifacts for release uses: dawidd6/action-download-artifact@v2 with: @@ -25,6 +34,7 @@ jobs: workflow: build.yml path: ./dist github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Retrieve SDIST artifacts for release uses: dawidd6/action-download-artifact@v2 with: @@ -40,7 +50,7 @@ jobs: working-directory: ./dist - name: Release code as new release on Pypi - if: ${{ startsWith('v', github.event.release.name) }} + if: ${{ startsWith(github.event.release.name, 'v') }} uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__