Skip to content

Commit c0b4e24

Browse files
authored
Merge pull request #125 from kurtmckee/add-prep-release-workflow
Add a reusable workflow to prepare release branches
2 parents 45dd347 + 58d86ec commit c0b4e24

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "✨ Prep release"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The new version"
8+
type: "string"
9+
required: true
10+
11+
jobs:
12+
prep-release:
13+
name: "Prep release v${{ inputs.version }}"
14+
15+
permissions:
16+
contents: "write"
17+
pull-requests: "write"
18+
19+
strategy:
20+
matrix:
21+
include:
22+
- tox-label-create-changes: "prep-release"
23+
branch-name: "release/$VERSION"
24+
commit-title: "Update project metadata"
25+
pr-base: "releases"
26+
pr-title: "Release v$VERSION"
27+
28+
uses: "kurtmckee/github-workflows/.github/workflows/create-pr.yaml@ca26472ada33aa277527450aa46436f530e3d2c1" # v1.4
29+
with:
30+
config: "${{ toJSON(matrix) }}"
31+
version: "${{ inputs.version }}"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Development
2+
-----------
3+
4+
* Add a reusable workflow to prepare release branches.

tox.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ envlist =
66
pypy{3.11, 3.10}{-http,}
77
py3.9-minimum_dependencies
88
coverage_report
9+
build
910
mypy
1011
docs
1112
labels =
@@ -44,6 +45,18 @@ deps = -rrequirements/docs/requirements.txt
4445
commands = sphinx-build -aWEnqb html docs/ build/docs
4546

4647

48+
[testenv:build]
49+
base_python = py3.13
50+
skip_install = true
51+
deps =
52+
build
53+
twine
54+
uv
55+
commands =
56+
python -m build --installer uv --outdir dist/
57+
twine check --strict dist/*
58+
59+
4760
[testenv:coverage_erase]
4861
skipsdist = true
4962
skip_install = true

0 commit comments

Comments
 (0)