@@ -13,9 +13,34 @@ Prior to tagging a release, ensure the following have been updated:
1313* If this is a new major version, then the ` .travis.dist.yml ` and ` doc/TravisFileExplained.md ` need to be updated
1414 to use the new major version. Any other version will automatically be used.
1515
16- As of writing this, releases are made from the ` master ` branch. To tag a release, use a commands like the following:
16+ When all the changes above have been performed, push them straight upstream to ` master ` (or create a standard PR
17+ to get them reviewed and incorporated upstream, but ** avoid merge commit** , use "Rebase and merge" instead).
18+
19+ Once all code and commits are in place and verified, you need to tag a release.
20+
21+ There are two options: you can tag ` master ` branch ` HEAD ` and push using commands:
1722
1823``` bash
19- $ git tag -a 1.0.0 -m " Release version 1.0.0"
20- $ git push origin 1.0.0
21- ```
24+ $ git tag -a 3.1.0 -m " Release version 3.1.0"
25+ $ git push origin 3.1.0
26+ ```
27+ Alternatively, you can use GitHub interface to tag: click "Draft a new release" and specify
28+ tag using the interface (you can leave title field empty, tag will be used as
29+ title in this case) and click "Publish release".
30+
31+ In either option, when the tag is pushed or created via interface, travis will
32+ trigger a tag build that contains Deploy stage. At this stage it should
33+ automatically create the ` moodle-plugin-ci.phar ` release artifact and add it
34+ to the latest release "assets" on GitHub. Verify it has worked correctly by
35+ navigating at
36+ [ Releases] ( https://github.com/moodlehq/moodle-plugin-ci/releases ) .
37+
38+ If there is any problem with that automatic deployment, the artifact will need to be created manually. First build PHAR file manually:
39+
40+ ``` bash
41+ $ make build/moodle-plugin-ci.phar
42+ ```
43+
44+ Once the above command suceeded, navigate to latest release in [ GitHub
45+ interface] ( https://github.com/moodlehq/moodle-plugin-ci/releases ) , click
46+ "Edit" and attach generated PHAR file to release (you will find it at ` ./build ` subdir).
0 commit comments