Skip to content

Even more chars

Even more chars #15

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: 44, Col: 12): Job 'publish-pypi' depends on unknown job 'publish-testpypi'., (Line: 60, Col: 12): Job 'github-release' depends on job 'publish-pypi' which creates a cycle in the dependency graph.
on:
push:
tags:
- "v*.*.*"
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install build tools
run: pip install build
- name: Build sdist and wheel
run: python -m build
- name: Verify distributions
run: |
ls -lh dist/
pip install twine
twine check dist/*
- uses: actions/upload-artifact@v6
with:
name: dist
path: dist/
publish-pypi:
name: Publish to PyPI
needs: publish-testpypi
runs-on: ubuntu-latest
timeout-minutes: 10
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v7
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1
github-release:
name: Create GitHub Release
needs: publish-pypi
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Generate release notes
run: |
pip install "git-cliff~=2.7"
git-cliff --latest --strip header --output RELEASE_NOTES.md
cat RELEASE_NOTES.md
- uses: actions/download-artifact@v7
with:
name: dist
path: dist/
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" \
--title "${{ github.ref_name }}" \
--notes-file RELEASE_NOTES.md \
dist/*