@@ -20,7 +20,7 @@ pages for the package homepage.
20
20
21
21
## Requirements
22
22
23
- The ` release ` script should run on any POSIX compatible system,
23
+ The ` release-gap-package ` script should run on any POSIX compatible system,
24
24
provided the following tools are available:
25
25
26
26
* [ curl] ( https://curl.haxx.se/ )
@@ -31,15 +31,15 @@ provided the following tools are available:
31
31
specifies it in the ` ArchiveFormats ` field)
32
32
33
33
In addition, you also need a recent enough version of GAP (4.7.8 or later
34
- should do it). By default the ` release ` script assumes that there is a
34
+ should do it). By default the ` release-gap-package ` script assumes that there is a
35
35
` gap ` executable in your PATH. If this is not the case, or if you want
36
- ` release ` to use another GAP executable, you can do so via the ` GAP `
36
+ ` release-gap-package ` to use another GAP executable, you can do so via the ` GAP `
37
37
environment variable.
38
38
39
- For example, you could invoke ` release ` like this, assuming the
39
+ For example, you could invoke ` release-gap-package ` like this, assuming the
40
40
` ReleaseTools ` directory is next to your package's directory:
41
41
42
- GAP=/home/john_smith/gap/bin/gap.sh ../ReleaseTools/release
42
+ GAP=/home/john_smith/gap/bin/gap.sh ../ReleaseTools/release-gap-package
43
43
44
44
Your package must also be hosted on GitHub.
45
45
@@ -102,11 +102,11 @@ make a release.
102
102
103
103
1. Prepare your release, commit all changes and push them
104
104
105
- 2. Run `PATH/TO/ReleaseTools/release`
105
+ 2. Run `PATH/TO/ReleaseTools/release-gap-package `
106
106
107
107
3. If there was no error, you are done. Otherwise, address the error,
108
108
commit and push the changes, then repeat step 2 (you may need to add
109
- the `--force` option, to convince `release` to re-create git tags
109
+ the `--force` option, to convince `release-gap-package ` to re-create git tags
110
110
etc.)
111
111
112
112
@@ -118,8 +118,9 @@ repository.
118
118
119
119
In order to make a release, you can follow the steps below. Note that this
120
120
assumes that `gap` is in your PATH, i.e. it can be invoked by just entering
121
- `gap`. Alternatively, before running the `release` tool you can set the `GAP`
122
- environment variable to contain the full path to your GAP executable
121
+ `gap`. Alternatively, before running the `release-gap-package` tool you can
122
+ set the `GAP` environment variable to contain the full path to your GAP
123
+ executable.
123
124
124
125
1. Make sure we are on the right branch and have the latest version.
125
126
@@ -154,10 +155,10 @@ environment variable to contain the full path to your GAP executable
154
155
git commit --all -m "Version 1.2.3"
155
156
```
156
157
157
- 7. Create the release using the `release` script included here:
158
+ 7. Create the release using the `release-gap-package ` script included here:
158
159
159
160
```
160
- PATH/TO/ReleaseTools/release --no-push
161
+ PATH/TO/ReleaseTools/release-gap-package --no-push
161
162
```
162
163
163
164
If this does not work, please refer to the section discussing `release`.
@@ -169,17 +170,18 @@ environment variable to contain the full path to your GAP executable
169
170
In particular, test the release archives created by the previous step. If
170
171
you are unhappy with the outcome, or for some other reason decide that you
171
172
need more changes, do these and go back and repeat previous steps as
172
- necessary (in step 8, you now need to pass `--force` to the `release` tool)
173
+ necessary (in step 8, you now need to pass `--force` to the
174
+ `release-gap-package` tool)
173
175
174
176
9. Update the website:
175
177
176
178
```
177
179
cd gh-pages && git push
178
180
```
179
181
180
- Note that `release` will also do this for you if you omit the `--no-push`
181
- option; once you are familiar with this tool, and confident everything
182
- worked fine, you may want to always do it that way.
182
+ Note that `release-gap-package ` will also do this for you if you omit the
183
+ `--no-push` option; once you are familiar with this tool, and confident
184
+ everything worked fine, you may want to always do it that way.
183
185
184
186
185
187
That's it. You should now be able to see the new version on
@@ -193,24 +195,24 @@ detect that you made a release, and pull it into the next
193
195
GAP package bundle.
194
196
195
197
196
- ## The `release` script
198
+ ## The `release-gap-package ` script
197
199
198
- The `release` script helps you create release archives of your GAP package in a clean
199
- and controlled way, and publish them on GitHub.
200
+ The `release-gap-package ` script helps you create release archives of your GAP
201
+ package in a clean and controlled way, and publish them on GitHub.
200
202
201
203
Again, we assume you are working on version 1.2.3 or package `FOOBAR`.
202
204
203
- ### Invoking the `release` script
205
+ ### Invoking the `release-gap-package ` script
204
206
205
- You normally invoke `release` as follows from inside a clone of your
207
+ You normally invoke `release-gap-package ` as follows from inside a clone of your
206
208
package repository:
207
209
208
- PATH/TO/ReleaseTools/release
210
+ PATH/TO/ReleaseTools/release-gap-package
209
211
210
212
This scans your `PackageInfo.g` for the package name and version, and uses
211
213
that to guess the release tag, and continues from there (see the next section
212
- for more details). However, several options can be passed to the `release`
213
- tool to adjust this process.
214
+ for more details). However, several options can be passed to the
215
+ `release-gap-package` tool to adjust this process.
214
216
215
217
1. **Options which indicate actions:**
216
218
@@ -224,15 +226,14 @@ tool to adjust this process.
224
226
to the website. This gives you a chance to inspect all generated files
225
227
etc. before finally making the new release public.
226
228
227
- - `-f`, `--force`: for safety reasons, `release` will abort immediately if it
228
- thinks that a release with the same version number has already been
229
- made, e.g. because the tag for the release already exists. This is
230
- done because the GAP package distribution strongly advices against
231
- reusing the same version for different content. However, this check
232
- might be wrongly triggered, e.g. because an attempt to release the
233
- current version was aborted earlier due to another error. In this
234
- case, you can use the `--force` option to instruct `release` to
235
- disable this check.
229
+ - `-f`, `--force`: for safety reasons, `release-gap-package` will abort
230
+ immediately if it thinks that a release with the same version number has
231
+ already been made, e.g. because the tag for the release already exists.
232
+ This is done because the GAP package distribution strongly advices against
233
+ reusing the same version for different content. However, this check might
234
+ be wrongly triggered, e.g. because an attempt to release the current
235
+ version was aborted earlier due to another error. In this case, you can use
236
+ the `--force` option to instruct `release-gap-package` to disable this check.
236
237
237
238
2. **Options which adjust paths:**
238
239
@@ -252,9 +253,9 @@ tool to adjust this process.
252
253
in this README.
253
254
254
255
255
- ### What the `release` script does
256
+ ### What the `release-gap-package ` script does
256
257
257
- The `release` script does multiple things for you:
258
+ The `release-gap-package ` script does multiple things for you:
258
259
259
260
1. It creates archive files in a subdirectory `tmp` of the current directory.
260
261
For now, it knows how to create `.tar.gz`, `.tar.bz2` and `.zip` files.
@@ -276,7 +277,7 @@ The `release` script does multiple things for you:
276
277
277
278
then you can achieve this by editing your `PackageInfo.g`.
278
279
279
- To create these archives, `release` uses `git archive`
280
+ To create these archives, `release-gap-package ` uses `git archive`
280
281
to export precisely the files in your repository present in the commit
281
282
tagged `v1.2.3`. This ensures
282
283
that *only* files that are present in your repository will be added,
@@ -306,10 +307,10 @@ The `release` script does multiple things for you:
306
307
307
308
## GitHub access token
308
309
309
- The `release` script needs limited write access to your repository in
310
- order to upload the release archives for you. In order to do this,
311
- the scripts needs to authenticate itself with GitHub, for which it needs
312
- a so-called "personal access token". You can generate such a token as follows
310
+ The `release-gap-package ` script needs limited write access to your repository
311
+ in order to upload the release archives for you. In order to do this, the
312
+ scripts needs to authenticate itself with GitHub, for which it needs a
313
+ so-called "personal access token". You can generate such a token as follows
313
314
(see also <https://help.github.com/articles/creating-an-access-token-for-command-line-use>).
314
315
315
316
1. Go to <https://github.com/settings/tokens>.
@@ -324,7 +325,7 @@ a so-called "personal access token". You can generate such a token as follows
324
325
off the page, you will not be able to see the token again. You therefore
325
326
should store it somewhere, e.g. with option 3 in the following list.
326
327
327
- There are multiple ways to tell the `release` script what your token is.
328
+ There are multiple ways to tell the `release-gap-package ` script what your token is.
328
329
In order of their precedence from lowest to highest:
329
330
330
331
1. **Recommended**: Create a file `~/.github_shell_token` containing your
@@ -343,11 +344,11 @@ In order of their precedence from lowest to highest:
343
344
3. Set the environment variable `TOKEN` to the token value.
344
345
This is mainly useful in scripts. E.g.
345
346
346
- TOKEN=VALUE ./release ...
347
+ TOKEN=VALUE ./release-gap-package ...
347
348
348
349
4. Use the `--token` command line option:
349
350
350
- ./release --token VALUE ...
351
+ ./release-gap-package --token VALUE ...
351
352
352
353
353
354
## Contact
0 commit comments