Skip to content

public-transit-client 0.1.0 #1

public-transit-client 0.1.0

public-transit-client 0.1.0 #1

Workflow file for this run

name: Poetry Publish
on:
release:
types: [ created ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install --no-interaction --no-root
- name: Build the package
run: |
poetry build
- name: Publish to PyPI
env:
TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry publish --username __token__ --password $TOKEN --no-interaction --build