v0.2.0 #16
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 Python Package | |
on: | |
workflow_dispatch: | |
release: | |
types: [created] | |
jobs: | |
build-n-publish: | |
name: Build and publish Python 🐍 distributions 📦 to PyPI | |
runs-on: ubuntu-latest | |
# needs: [test] | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
cache: pip | |
cache-dependency-path: '**/pyproject.toml' | |
- name: Install Poetry | |
run: pip install poetry poetry-dynamic-versioning | |
- name: Install dependencies | |
run: poetry install --no-interaction | |
- name: Add dynamic versioning plugin | |
run: poetry self add "poetry-dynamic-versioning[plugin]" | |
- name: Build source and wheel archives | |
run: poetry build | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 |