Publish #20
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] | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources # Clones your repository into the machine running the action | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install | |
- name: Configure Poetry | |
env: | |
pypi_token: ${{ secrets.PYPI_TOKEN }} | |
run: poetry config pypi-token.pypi $pypi_token | |
- name: Build and publish | |
run: poetry publish --build |