π 0.10.1 #2
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: Publish Poetry Package to PyPI | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
uses: packetcoders/action-setup-cache-python-poetry@main | |
with: | |
python-version: 3.12 | |
poetry-version: 1.8.3 | |
- name: Mint token | |
id: mint | |
uses: tschm/token-mint-action@v1.0.3 | |
- name: Publish the package | |
run: poetry publish --build -u __token__ -p '${{ steps.mint.outputs.api-token }}' |