Skip to content

GitHub action to release package to PyPi #1

GitHub action to release package to PyPi

GitHub action to release package to PyPi #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
build-release:
name: Build Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install packages
run: |
python -m pip install --upgrade pip build
python -m pip install -e .
- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true