Commit CHANGELOG.md, create a Release and deploy MkDocs #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commit CHANGELOG.md, create a Release and deploy MkDocs | |
permissions: | |
contents: read | |
id-token: write | |
on: | |
workflow_dispatch: | |
inputs: | |
version-tag: | |
description: Version tag | |
required: true | |
default: v0.1.0 | |
dry-run: | |
description: Dry run | |
type: boolean | |
default: false | |
exclude-types: | |
description: Commit types to exclude from the changelog | |
required: false | |
default: build,docs,style,other | |
jobs: | |
commit-changelog-and-release: | |
uses: deargen/workflows/.github/workflows/commit-changelog-and-release.yml@master | |
with: | |
version-tag: ${{ github.event.inputs.version-tag }} | |
dry-run: ${{ github.event.inputs.dry-run == 'true' }} | |
changelog-path: docs/CHANGELOG.md | |
exclude-types: ${{ github.event.inputs.exclude-types }} | |
deploy-mkdocs: | |
if: ${{ github.event.inputs.dry-run == 'false' }} | |
needs: commit-changelog-and-release | |
uses: deargen/workflows/.github/workflows/deploy-mkdocs.yml@master | |
with: | |
requirements-file: deps/lock/x86_64-manylinux_2_28/requirements_docs.txt | |
version-tag: ${{ github.event.inputs.version-tag }} | |
deploy-type: tag | |
publish-to-pypi: | |
if: ${{ github.event.inputs.dry-run == 'false' }} | |
needs: commit-changelog-and-release | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.version-tag }} | |
- uses: deargen/workflows/actions/setup-python-and-uv@master | |
- name: Build and upload to PyPI | |
run: | | |
uv build --sdist | |
uv publish |