Skip to content

Merge pull request #8 from weijt606/v0.2.3 #12

Merge pull request #8 from weijt606/v0.2.3

Merge pull request #8 from weijt606/v0.2.3 #12

Workflow file for this run

name: Publish PyPI
on:
workflow_dispatch:
push:
tags:
- "v*"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools
run: python -m pip install --upgrade pip build twine
- name: Build distributions
run: python -m build
- name: Check distributions
run: twine check dist/*
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: python-dist
path: dist/
publish:
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/polyharness/
permissions:
id-token: write
steps:
- name: Download distributions
uses: actions/download-artifact@v4
with:
name: python-dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1