Skip to content

labone patch release #16

labone patch release

labone patch release #16

Workflow file for this run

name: Publish to PyPi
on:
push:
tags:
- "v*.*.*"
jobs:
build-distribution:
name: "Build distribution"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout tag/branch"
uses: "actions/checkout@v3"
- name: "Setup Python"
uses: "actions/setup-python@v3"
with:
python-version: "3.9"
- name: "Install build dependencies"
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel build
- name: "Build wheels & source dist"
run: |
python -m build --sdist --wheel
- name: "Test wheels"
run: |
python -m venv build_env --clear
source build_env/bin/activate
bash build_tools/test_wheels.sh
- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: source-dist
path: dist
PyPi:
needs: ["build-distribution"]
name: "Publish to PyPi"
runs-on: "ubuntu-latest"
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: source-dist
path: dist
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist