| 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 | - Add your changelog to the `NEWS.md` file |
| 17 | ```sh |
| 18 | $ git add NEWS.md |
| 19 | $ git commit -m ${version} |
| 20 | ``` |
| 21 | - Push your branch |
| 22 | ```sh |
| 23 | $ git push -u ${fork} release-${version} |
| 24 | ``` |
| 25 | - Open a pull request |
| 26 | |
| 27 | ### Create a Signed Tag |
| 28 | |
| 29 | **NOTE**: Only project maintainers can create a tag. |
| 30 | |
| 31 | Make sure that: |
| 32 | - You're on the `main` branch, or a stable branch; |
| 33 | - The tip of the branch is a release commit (e.g. `1.19.4`) |
| 34 | - The version in `meson.build` is correct |
| 35 | |
| 36 | Then create the tag: |
| 37 | |
| 38 | ```sh |
| 39 | $ git evtag sign ${version} |
| 40 | $ git push -u origin ${version} |
| 41 | ``` |
| 42 | |
| 43 | ### Post-Release |
| 44 | |
| 45 | - Update version number in `meson.build` to the next release version |
| 46 | - Start a new section in `NEWS.md` |
| 47 | ```md |
| 48 | Changes in ${nextVersion} |
| 49 | ================= |
| 50 | Released: Not yet |
| 51 | ... |
| 52 | ``` |
| 53 | |
| 54 | ### Post-Branching |
| 55 | |
| 56 | After creating a stable branch: |
| 57 | |
| 58 | - Update version number in `meson.build` to the next unstable release version |
| 59 | - Update `SECURITY.md` |
| 60 | - Update `.github/ISSUE_TEMPLATE/bug-report.yml` |