Skip to content

Version 1.0.0-pre3

Version 1.0.0-pre3 #1

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*-pre*'
jobs:
release:
name: Release package to PyPI
runs-on: ubuntu-latest
steps:
- name: Repository Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies for building
run: |
python3 -m pip install -U pip wheel setuptools
python3 -m pip install -U twine build
- name: Build Repository
run: python3 -m build --sdist --wheel --outdir dist/
- name: Publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
- name: Publish to GitHub Releases
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: dist/*
prerelease: ${{ contains(github.ref, 'pre') }}