File tree 3 files changed +60
-129
lines changed
3 files changed +60
-129
lines changed Original file line number Diff line number Diff line change
1
+ name : Create release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+ workflow_dispatch :
8
+
9
+ permissions :
10
+ contents : read
11
+
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14
+ cancel-in-progress : true
15
+
16
+ env :
17
+ FORCE_COLOR : " 1"
18
+ UV_SYSTEM_PYTHON : " 1" # make uv do global installs
19
+
20
+ jobs :
21
+ publish-pypi :
22
+ runs-on : ubuntu-latest
23
+ name : PyPI Release
24
+ environment : release
25
+ if : github.repository_owner == 'breathe-doc'
26
+ permissions :
27
+ id-token : write # for PyPI trusted publishing
28
+ steps :
29
+ - uses : actions/checkout@v4
30
+ with :
31
+ persist-credentials : false
32
+
33
+ - name : Set up Python
34
+ uses : actions/setup-python@v5
35
+ with :
36
+ python-version : " 3"
37
+
38
+ - name : Install uv
39
+ uses : astral-sh/setup-uv@v5
40
+ with :
41
+ version : latest
42
+ enable-cache : false
43
+
44
+ - name : Install build dependencies (pypa/build, twine)
45
+ run : uv pip install build "twine>=5.1"
46
+
47
+ - name : Build distribution
48
+ run : python -m build
49
+
50
+ - name : Check distribution
51
+ run : |
52
+ twine check --strict dist/*
53
+
54
+ - name : Upload to PyPI
55
+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -128,13 +128,11 @@ Examples of projects that use Breathe:
128
128
Release
129
129
-------
130
130
131
- See the ``mkrelease `` utility in the root of the repository.
132
-
133
- Useful vim command for changelog conversion to the git tag format:
134
-
135
- .. code :: vim
136
-
137
- %s/\v`(#[0-9]+) \<[^`]*`__/\1/g
131
+ 1. Update `CHANGELOG.rst ` and create the git tag (`vX.Y.Z `).
132
+ 2. Push the tag to GitHub.
133
+ 3. The `create-release.yml ` workflow will publish the release to PyPI.
134
+ 4. Go to https://github.com/breathe-doc/breathe/tags, select the new tag,
135
+ and click the "Create release from tag" button to publish a GitHub release.
138
136
139
137
Maintainers
140
138
-----------
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments