0.3.0 #11
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: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
if: github.event_name == 'release' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install Poetry | |
uses: snok/[email protected] | |
with: | |
virtualenvs-create: true | |
- name: Parse the git tag | |
id: get_tag | |
run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3) | |
- name: Bump poetry version | |
run: poetry version ${{ steps.get_tag.outputs.TAG }} | |
- name: Publish to PyPI | |
run: poetry publish -n --build --username __token__ --password ${{ secrets.pypi_password }} |