Skip to content

Deploy a new version #8

Deploy a new version

Deploy a new version #8

Workflow file for this run

name: Deploy a new version
on:
workflow_dispatch:
inputs:
version-tag:
description: Version tag
required: true
default: v0.2.6
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 }}
publish-to-pypi:
if: ${{ github.event.inputs.dry-run == 'false' }}
needs: commit-changelog-and-release
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
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
uv publish