Skip to content

Commit CHANGELOG.md, create a Release and deploy MkDocs #2

Commit CHANGELOG.md, create a Release and deploy MkDocs

Commit CHANGELOG.md, create a Release and deploy MkDocs #2

Workflow file for this run

name: Commit CHANGELOG.md, create a Release and deploy MkDocs
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 venv
source .venv/bin/activate
uv pip install build twine
python -m build . --sdist
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --non-interactive