Skip to content

Publish module to PyPI #2

Publish module to PyPI

Publish module to PyPI #2

Workflow file for this run

name: Publish module to PyPI
on:
workflow_dispatch:
jobs:
publishModule:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1
id: generate-token
with:
app_id: ${{ secrets.PR_APP_ID }}
private_key: ${{ secrets.PR_APP_PRIVATE_KEY }}
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
name: Checkout fragment-python
- name: Use Python 3.10.14
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.10.14'
- name: Install dependencies
run: |
pip install poetry
poetry install --with dev
- name: Publish to PyPI
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build