Skip to content

Publish to PyPi and create GitHub Release #9

Publish to PyPi and create GitHub Release

Publish to PyPi and create GitHub Release #9

Workflow file for this run

name: Publish to PyPi and create GitHub Release
on:
release:
types: [published]
jobs:
publish:
name: publish
runs-on: ubuntu-latest
environment: publish
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish PyPi package
uses: pypa/gh-action-pypi-publish@release/v1
# - name: Publish GitHub release
# uses: ncipollo/release-action@v1
# with:
# artifacts: "dist/*.tar.gz"