From 103c81aa18bc44f71dbfac43203e885bc7f8c7c6 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Sun, 11 Dec 2022 23:45:27 +0100 Subject: [PATCH] Update create-release.yml --- .github/workflows/create-release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 35b35cd..5391878 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -22,3 +22,21 @@ jobs: with: body: ${{ steps.extract-release-notes.outputs.release_notes }} token: ${{ secrets.WORKFLOWS_CREATE_RELEASE_TOKEN }} + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + cache: 'pip' + + - name: Build Package + run: | + pip install pip --upgrade + pip install build + python -m build + + - name: Publish on PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages_dir: dist/ + password: ${{ secrets.WORKFLOWS_PUBLISH_TO_PYPI_TOKEN }}