Skip to content

Register to PyPI

Register to PyPI #12

Workflow file for this run

name: Register to PyPI
on:
workflow_dispatch:
inputs:
git_ref:
description: Git tag, branch or commit to register (e.g. v0.9.10)
required: true
jobs:
register:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.git_ref }}
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install build
run: >-
python -m
pip install
build
--user
- name: Build distribution
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}