Commit 3a5738739d34d1936bb3e6069efbc915ce2330c8
1 parent
69237574
Tweak release instructions
Showing
1 changed file
with
11 additions
and
5 deletions
README-maintainer
| @@ -137,18 +137,24 @@ chmod 555 *.AppImage | @@ -137,18 +137,24 @@ chmod 555 *.AppImage | ||
| 137 | `README-what-to-download.md` separately onto the download area if | 137 | `README-what-to-download.md` separately onto the download area if |
| 138 | needed. | 138 | needed. |
| 139 | 139 | ||
| 140 | -* Push the master branch to github. Create and push a signed tag. This | ||
| 141 | - should be run with HEAD pointing to the tip of master. | 140 | +* Ensure that the master branch has been to github. The rev-parse |
| 141 | + command below should show the same commit hash for all its | ||
| 142 | + arguments. Create and push a signed tag. This should be run with | ||
| 143 | + HEAD pointing to the tip of master. | ||
| 142 | 144 | ||
| 143 | -git rev-parse master @ | ||
| 144 | -git push upstream master | ||
| 145 | -git tag -s release-qpdf-$version HEAD -m"qpdf $version" | 145 | +git rev-parse master upstream/master @ |
| 146 | +git tag -s release-qpdf-$version @ -m"qpdf $version" | ||
| 146 | git push upstream release-qpdf-$version | 147 | git push upstream release-qpdf-$version |
| 147 | 148 | ||
| 149 | +* In Azure Pipelines, retain the build that was used to generate the | ||
| 150 | + release. | ||
| 151 | + | ||
| 148 | * Create a github release after pushing the tag. `gcurl` is an alias | 152 | * Create a github release after pushing the tag. `gcurl` is an alias |
| 149 | that includes the auth token. | 153 | that includes the auth token. |
| 150 | 154 | ||
| 151 | # Create release | 155 | # Create release |
| 156 | +TOKEN=$(cat ~/.github-token) | ||
| 157 | +function gcurl() { curl -H "Authorization: token $TOKEN" ${1+"$@"} } | ||
| 152 | url=$(gcurl -s -XPOST https://api.github.com/repos/qpdf/qpdf/releases -d'{"tag_name": "release-qpdf-'$version'", "name": "qpdf '$version'", "draft": true}' | jq -r '.url') | 158 | url=$(gcurl -s -XPOST https://api.github.com/repos/qpdf/qpdf/releases -d'{"tag_name": "release-qpdf-'$version'", "name": "qpdf '$version'", "draft": true}' | jq -r '.url') |
| 153 | 159 | ||
| 154 | # Get upload url | 160 | # Get upload url |