From 34c98c105dd516cbec11aab62a32d205ee9c553d Mon Sep 17 00:00:00 2001 From: Tatu Aalto Date: Sun, 31 Mar 2024 00:58:41 +0200 Subject: [PATCH] chore: Publish to Pypi --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 365b172..f407726 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,3 +35,13 @@ jobs: uses: python-semantic-release/python-semantic-release@master with: github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + if: ${{ steps.release.outputs.released }} == 'true' + + - name: Publish package to GitHub Release + uses: python-semantic-release/upload-to-gh-release@main + if: ${{ steps.release.outputs.released }} == 'true' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ steps.release.outputs.tag }}