From 648931b8f780be1bcae7aff364aef3df409c32de Mon Sep 17 00:00:00 2001 From: Urtzi Odriozola Date: Wed, 23 Nov 2022 12:38:53 +0100 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index c5228bc..d0962fb 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -26,14 +26,25 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.x' + - name: Install dependencies run: | python -m pip install --upgrade pip pip install build + - name: Build package run: python -m build + - name: Publish package uses: pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} + + - name: Publish the release notes + uses: release-drafter/release-drafter@v5.21.1 + with: + publish: ${{ steps.check-version.outputs.tag != '' }} + tag: ${{ steps.check-version.outputs.tag }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}