diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 857c8e0..2c2a6f7 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -41,9 +41,16 @@ jobs: - run: echo "value=$(ls dist/*.tar.gz | sed 's/.tar.gz//' | xargs basename)" >> $GITHUB_OUTPUT id: dist_folder - - uses: "marvinpinto/action-automatic-releases@latest" + - name: Publish distribution to GitHub + uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" files: | dist/*.tar.gz dist/*.whl + + - name: Publish distribution to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file