Skip to content

Fix releasing

Fix releasing #16

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 32, Col: 9): Job 'publish-testpypi' depends on unknown job 'scripts'., (Line: 51, Col: 9): Job 'publish-pypi' depends on unknown job 'scripts'., (Line: 63, Col: 12): Job 'tag-release' depends on job 'publish-pypi' which creates a cycle in the dependency graph.
on:
workflow_dispatch:
jobs:
# Build Python package
build:
uses: ewoks-kit/.github/.github/workflows/python-build.yml@main
# Run tests
tests:
needs: build
uses: ewoks-kit/.github/.github/workflows/python-tests.yml@main
# Run linter / checks
checks:
uses: ewoks-kit/.github/.github/workflows/python-check.yml@main
# Build documentation
docs:
needs: build
uses: ewoks-kit/.github/.github/workflows/python-docs.yml@main
# Publish package to TestPyPI
publish-testpypi:
needs:
- build
- tests
- checks
- docs
- scripts
runs-on: ubuntu-latest
environment:
name: release
permissions:
id-token: write
steps:
- uses: ewoks-kit/.github/.github/actions/setup-python-package@main
- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
# Publish package to PyPI
publish-pypi:
needs:
- build
- tests
- checks
- docs
- scripts
runs-on: ubuntu-latest
environment:
name: release
permissions:
id-token: write
steps:
- uses: ewoks-kit/.github/.github/actions/setup-python-package@main
- uses: pypa/gh-action-pypi-publish@release/v1
# Tag
tag-release:
needs: publish-pypi
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: ewoks-kit/.github/.github/actions/tag-release@main