fix ci #5
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 Python Package | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' # Publish on every tag push | |
release: | |
types: | |
- published | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install Poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: Install Dependencies | |
run: poetry install | |
- name: Publish to PyPI | |
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' | |
env: | |
POETRY_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # Add your token in GitHub Secrets | |
run: poetry publish --build --username __token__ --password $POETRY_PASSWORD |