v0.1.3 #1
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
on: | |
release: | |
types: | |
- created | |
name: Publish package | |
jobs: | |
poetry: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install poetry | |
run: pip install poetry | |
- name: Run poetry install | |
run: poetry install | |
- name: Run poetry build | |
run: poetry build | |
- name: Setup remote PyPI repository | |
run: poetry config repositories.testpypi https://test.pypi.org/legacy/ | |
- name: Setup remote PyPI token authentication | |
run: poetry config pypi-token.testpypi ${{ secrets.PYPI_TOKEN }} | |
- name: Publish package | |
run: poetry publish | |