refactor: bump version #53
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 📝 | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build-publish: | |
name: Build & Publish | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Extract Tag Name | |
run: echo "TAG_NUMBER=$(git describe --tags | sed 's/v//')" >> $GITHUB_ENV | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install Workflow Deps | |
run: python -m pip install poetry poetry2setup wheel | |
- name: Bump Version | |
run: | | |
poetry version $TAG_NUMBER | |
poetry2setup > setup.py | |
- name: Publish Distribution to PyPI | |
env: | |
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
run: | | |
poetry config pypi-token.pypi $PYPI_API_TOKEN | |
poetry publish --build |