Skip to content

Release to PyPI

Release to PyPI #2

Workflow file for this run

name: Release to PyPI
on:
push:
tags:
- v**
workflow_dispatch: {}
jobs:
run-ci:
uses: ./.github/workflows/ci.yml
pypi-publish:
name: Upload release to PyPI
needs: [run-ci]
runs-on: ubuntu-22.04
environment:
name: pypi
url: https://pypi.org/p/pidiff
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install -U pip
pip install build
- name: Build distribution
run: |
python -mbuild
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1