Skip to content

Publish Release to PyPI #6

Publish Release to PyPI

Publish Release to PyPI #6

Workflow file for this run

name: Publish Release to PyPI
on:
workflow_dispatch:
inputs:
ref:
description: The branch, tag, or commit SHA1 to build the release from.
jobs:
pypi-publish:
name: Upload a release to PyPI
runs-on: ubuntu-latest
environment: pypi-release
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install pypa/build
run: python3 -m pip install -U build --user
- name: Build Package
run: make build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1