Skip to content

smol adjustments + add publishing workflow #1

smol adjustments + add publishing workflow

smol adjustments + add publishing workflow #1

Workflow file for this run

name: Publish package
on:
push:
tags:
- 'v*.*.*'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install --no-root
- name: Configure Poetry for PyPI
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
- name: Publish to PyPI
run: poetry publish --build -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}
- name: Verify Package
run: |
pip install planning-library