Skip to content

v1.0.4

v1.0.4 #6

Workflow file for this run

name: Upload Python Package
on:
release:
types: [ created ]
workflow_dispatch:
inputs:
deploy_to_pypi:
type: boolean
description: Deploy the build to PyPI from this manual release.
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/fanoutqa
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
mkdir dist
- name: Build
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags') || inputs.deploy_to_pypi
uses: pypa/gh-action-pypi-publish@release/v1