-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from urbanopt/feat/docs
docs: add release instructions
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Releases | ||
Modelica formatter uses [GoReleaser](https://goreleaser.com/) for building assets and documenting tags for release. This is run automatically by Travis CI whenever a new tag is pushed to remote. See [.goreleaser.yml](/.goreleaser.yml) and [.travis.yml](/.travis.yml) for the configuration. | ||
|
||
## How to make a release | ||
First, create a tag: | ||
```bash | ||
git tag -a v<version> -m "<message>" [SHA] | ||
``` | ||
Where `v<version>` is a valid [semantic version](https://semver.org/) (e.g. `v1.2` or `v1.2-pr.1`) and `<message>` is the tagging message (e.g. "First official release") | ||
|
||
Next, push the tag up to remote, triggering a Travis build which runs GoReleaser: | ||
```bash | ||
git push origin v<version> | ||
``` |