Debian Codegraph @

RELEASE_HOWTO.md

raw symbols SCIP
1 # Steps for doing a xdg-desktop-portal release
2
3 ### Prepare the release
4
5 - Make sure the version in `meson.build` is correct
6 - Create a branch
7 ```sh
8 $ git checkout -b release-${version}
9 ```
10 - Update translations
11 ```sh
12 $ ninja -C ${builddir} xdg-desktop-portal-update-po
13 $ git add po/
14 $ git commit -m "Update translations"
15 ```
16 - If this is the first release of a new stable release series, update
17 `SECURITY.md`. It should list the development branch, new stable branch, and
18 old stable branch as currently maintained.
19 - Add your changelog to the `NEWS.md` file
20 ```sh
21 $ # Find PRs for the release
22 $ gh pr list \
23 --search "$(echo $(git log "${prev_version}..origin/main" --format=%H) | tr ' ' ',')" \
24 --state merged --limit 999 \
25 --json number,mergedAt,title,url
26 $ # Adjust NEWS.md
27 $ git add NEWS.md
28 $ git commit -m ${version}
29 ```
30 - Push your branch
31 ```sh
32 $ git push -u ${fork} release-${version}
33 ```
34 - Open a pull request
35
36 - Merge the pull request and wait for it to reach the `main` branch or the
37 stable branch
38
39 ### Create a Signed Tag
40
41 **NOTE**: Only project maintainers can create a tag.
42
43 Make sure that:
44 - You're on the `main` branch, or a stable branch;
45 - The tip of the branch is a release commit (e.g. `1.19.4`)
46 - The version in `meson.build` is correct
47
48 Then create the tag:
49
50 ```sh
51 $ git evtag sign ${version}
52 $ git push -u origin ${version}
53 ```
54
55 Copy paste the release notes from NEWS.md into the tag message when running
56 `git evtag`.
57
58 ### Post-Release
59
60 - Update version number in `meson.build` to the next release version
61 - Start a new section in `NEWS.md`
62 ```md
63 Changes in ${nextVersion}
64 =================
65 Released: Not yet
66
67 ...
68 ```
69
70 - Commit the changes as "Post-release version bump" and push to the
71 corresponding branch
72
73 ### Post-Branching
74
75 After creating a stable branch:
76
77 - Update version number in `meson.build` to the next unstable release version.
78 For example if the created stable branch name is xdg-desktop-portal-1.N, bump
79 the version to 1.N+1.0. Commit as "Post-branching version bump".
80 - Update `.github/ISSUE_TEMPLATE/bug-report.yml`. It should list the
81 development version, and the currently maintained stable versions, under "XDG
82 Desktop Portal version".
83 - Update the pending entry in NEWS.md to refer to the next unstable version.
84 - Push changes to the `main` branch.