Skip to content

Try publish

Try publish #12

Workflow file for this run

# CI/CD workflow for the project.
name: cicd
on:
push:
jobs:
# Check for linting errors.
lint:
uses: ./.github/workflows/python-make-target.yaml
with:
target: lint
# Run the test suite.
test:
uses: ./.github/workflows/python-make-target.yaml
with:
target: test
# When a release is created on github (using the vX.Y.Z tag formatting), publish the package to PyPI.
publish:
# if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-22.04
needs:
- lint
- test
permissions:
id-token: write
steps:
- name: build
uses: ./.github/workflows/python-make-target.yaml
with:
target: build
- name: publish
uses: pypa/gh-action-pypi-publish@release/v1