diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 40ff8fc57..904f8b9a4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -70,13 +70,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish package id: release - if: steps.check_tag.outputs.exists == 'false' && matrix.python-version == 'python38' + if: github.ref == 'refs/heads/main' && steps.check_tag.outputs.exists == 'false' run: | export RELEASE_FLAG=1 echo "::set-output name=release_flag::${RELEASE_FLAG}" PYPI_USERNAME=__token__ PYPI_PASSWORD=${{ secrets.PYPI_API_TOKEN }} ${{steps.path.outputs.pythonv}} do.py release - name: Create release and publish artifacts - if: github.ref == 'refs/heads/main' && steps.check_tag.outputs.exists == 'false' && matrix.python-version == 'python38' + if: github.ref == 'refs/heads/main' && steps.check_tag.outputs.exists == 'false' uses: ncipollo/release-action@v1 with: artifacts: "dist/*"