Skip to content

publish github action #1

publish github action

publish github action #1

Workflow file for this run

name: Publish sdist tarball to PyPi
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build-n-publish:
name: Build and publish on PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- name: Set up Python 3.8
uses: actions/setup-python@v5.2.0
with:
python-version: 3.8
- name: Build a source tarball
run: python setup.py sdist
- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}