Commit b4dbb3d
authored
Do not commit release artefacts by default (#1183)
We add a `-r`, `--commit-artefacts` option to the `seed` command.
When that option is enabled, we commit the release assets from the
very first build into the repository (assuming that `--skip-git` is _not_
used; under `--skip-git`, we are never committing anything no matter
what).
Adding the release assets to the repository is done directly from
within the `seed` command, which allows us to remove the
`prepare_initial_release` target from the standard Makefile (that
target was only ever needed by the `seed` command). But we do
add instead a small helper target, `show_release_assets`, that the
`seed` command is using to get the list of the assets to commit.
In .gitignore, we unconditionally ignore the top-level release artefacts,
so that they can never be committed inadvertently. If the user
chooses to commit release artefacts at commit time (using the
`--commit-artefacts` option), the `seed` command will forcefully add
the artefacts so that Git will start tracking them anyway.
closes #11441 parent 7e66a1c commit b4dbb3d
File tree
3 files changed
+26
-12
lines changed- odk
- template
- src/ontology
3 files changed
+26
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
| 1158 | + | |
1158 | 1159 | | |
1159 | | - | |
| 1160 | + | |
1160 | 1161 | | |
1161 | 1162 | | |
1162 | 1163 | | |
| |||
1213 | 1214 | | |
1214 | 1215 | | |
1215 | 1216 | | |
1216 | | - | |
| 1217 | + | |
1217 | 1218 | | |
| 1219 | + | |
1218 | 1220 | | |
1219 | | - | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
1220 | 1229 | | |
1221 | 1230 | | |
1222 | 1231 | | |
| |||
1227 | 1236 | | |
1228 | 1237 | | |
1229 | 1238 | | |
1230 | | - | |
1231 | 1239 | | |
1232 | 1240 | | |
1233 | 1241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
14 | 24 | | |
15 | 25 | | |
16 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
403 | 407 | | |
404 | 408 | | |
405 | 409 | | |
| |||
427 | 431 | | |
428 | 432 | | |
429 | 433 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | 434 | | |
439 | 435 | | |
440 | 436 | | |
| |||
0 commit comments