Update create-release.yml

This commit is contained in:
Fabio Caccamo 2022-12-11 23:45:27 +01:00
parent 44fb0070bc
commit 103c81aa18
1 changed files with 18 additions and 0 deletions

View File

@ -22,3 +22,21 @@ jobs:
with: with:
body: ${{ steps.extract-release-notes.outputs.release_notes }} body: ${{ steps.extract-release-notes.outputs.release_notes }}
token: ${{ secrets.WORKFLOWS_CREATE_RELEASE_TOKEN }} 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 }}