0.0.11 #11
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
name: Release Package to PyPI.org | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-and-publish: | |
name: Build and Publish Package to PyPI.org | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Build package | |
run: python -m pip install build twine && python -m build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
call-docker-publish-workflow: | |
needs: build-and-publish | |
permissions: | |
contents: read | |
packages: write | |
uses: ./.github/workflows/docker-publish.yml | |
with: | |
tag: ${{ github.ref_name }} |