diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e4e831..e91ba09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,9 +36,6 @@ jobs: - name: Setup Python environment uses: ./.github/actions/setup-python - # - name: Publish PyPI - # run: poetry publish --build -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} || echo "Already pushed to pypi" - - run: | echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV @@ -50,7 +47,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: | + - name: Publish PyPI and Github + run: | + poetry publish --build -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} || echo "Already pushed to pypi" gh release upload --clobber ${{ env.TAG_NAME }} dist/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}