Skip to content

Commit fe23a61

Browse files
authored
Merge pull request #24 from stronk7/release_docs_clarifications
Complete the release docs with some important details
2 parents b5e2dd4 + 14ebf8d commit fe23a61

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
- php: 7.0
7474
env: MOODLE_BRANCH=MOODLE_35_STABLE
7575
- stage: Deploy
76+
if: tag IS present
7677
before_install: skip
7778
install: skip
7879
script: skip
@@ -83,7 +84,7 @@ jobs:
8384
provider: releases
8485
api_key: $GITHUB_TOKEN
8586
file: build/moodle-plugin-ci.phar
86-
cleanup: false
87+
skip_cleanup: true
8788
on:
8889
repo: moodlehq/moodle-plugin-ci
8990
tags: true

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ The goal of this project is to facilitate the running of tests and code analysis
77
[Travis CI](https://travis-ci.org). All of these tests and tools are run everytime a change is pushed to a GitHub
88
branch or pull request.
99

10-
All documentation, guides, change log, etc can be found here: https://moodlehq.github.io/moodle-plugin-ci/
10+
* [Getting started](https://moodlehq.github.io/moodle-plugin-ci/)
11+
* [Help topics](https://moodlehq.github.io/moodle-plugin-ci/Help.html)
12+
* [Changelog](https://moodlehq.github.io/moodle-plugin-ci/CHANGELOG.html)
13+
* [Upgrade 3.0](https://moodlehq.github.io/moodle-plugin-ci/UPGRADE-3.0.html)
1114

1215
History, acknowledgement and appreciation
1316
=========================================

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ No unreleased changes.
3636

3737
### Added
3838
- New help document: [CLI commands and options](CLI.md)
39+
- Upgrade guide: [Upgrading from 2.X to 3.0](UPGRADE-3.0.md)
3940

4041
### Removed
4142
- Support for PHP 5.x (7.0.0 is now required).

docs/ReleaseNewVersion.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)