Merge pull request #146 from openfoodfacts/release-please--branches--β¦ #7
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 PyPI package | |
on: | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
push_to_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Set up python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.5.1 | |
- name: Run poetry build | |
run: poetry build | |
- name: Run poetry publish | |
run: POETRY_PYPI_TOKEN_PYPI=${{ secrets.PYPI_TOKEN }} poetry publish |