Skip to content

v0.5.2

v0.5.2 #6

Workflow file for this run

name: release
on:
release:
types: [published]
inputs:
release-pypi:
required: true
type: boolean
default: true
workflow_dispatch:
inputs:
release-pypi:
required: true
type: boolean
description: "if true a release is made on PyPI"
jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
build:
needs: test
uses: ./.github/workflows/build.yml
docs:
needs: test
uses: ./.github/workflows/docs.yml
secrets: inherit
release-pypi:
needs: [build]
runs-on: ubuntu-latest
if: github.event.inputs.release-pypi == 'true'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}