Skip to content

pymanuf CD (Publish) #12

pymanuf CD (Publish)

pymanuf CD (Publish) #12

Workflow file for this run

name: pymanuf CD (Publish)
on:
push:
tags:
- "*"
workflow_run:
workflows: ["Monthly Release"]
types: [completed]
workflow_dispatch:
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pymanuf
permissions:
id-token: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1