Release v2.3.0 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflows will upload a Python Package using PyPI's Trusted Publisher feature: https://docs.pypi.org/trusted-publishers/adding-a-publisher/ | |
name: Upload Python Package | |
on: | |
release: | |
types: [created] | |
jobs: | |
build-artifacts: | |
name: Builds wheel artifacts | |
runs-on: ubuntu-latest | |
environment: pypi-publish | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Build | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
python -m build | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
retention-days: 0 | |
pypi-publish: | |
needs: build-artifacts | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: pypi-publish | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
# retrieve your distributions here | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |