🔧 Fix release job (#1253) #32
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 | |
on: | |
push: | |
tags: | |
- '[0-9].[0-9]+.[0-9]+' | |
jobs: | |
publish: | |
name: Publish to PyPi | |
# needs: check | |
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: install Poetry | |
run: python -m pip install poetry | |
- name: poetry configure PyPI Token | |
run: poetry config pypi-token.pypi ${{ secrets.PYPI }} | |
- name: poetry build and publish PyPi | |
run: poetry --build publish |