bump: v0.7.3
#18
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: Upload Python Package | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v[0-9]\.[0-9]+\.[0-9]+' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry | |
poetry config virtualenvs.in-project true | |
poetry install | |
- name: Prepare README | |
run: ./scripts/refactor_readme.py README.md | |
- name: Build package | |
run: poetry build | |
- name: Publish package | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | |
poetry publish | |
- name: Create release | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
files: dist/* |