Skip to content

Commit

Permalink
Add automatic release notes (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmattgray authored Jan 19, 2022
1 parent 4c358b1 commit d65c0f5
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 14 deletions.
23 changes: 23 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- octocat
categories:
- title: Breaking Changes 🛠
labels:
- breaking-change
- title: Exciting New Features 🎉
labels:
- enhancement
- feature
- title: Bug Fixes 🐛
labels:
- bug
- title: Maintenance 🔧
labels:
- chore
- title: Other Changes
labels:
- "*"
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,23 +112,26 @@ jobs:
pushd $TEMP/artefacts/
tar -czvf vitalam-node-${BUILD_VERSION}-x86_64-unknown-linux-gnu.tar.gz ./VERSION.txt ./vitalam-node ./vitalam-node.sha256
popd;
- name: Build release version
uses: "marvinpinto/action-automatic-releases@latest"
uses: softprops/action-gh-release@v1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ needs.get-version.outputs.version }}
title: Release ${{ needs.get-version.outputs.version }}
token: "${{ secrets.GITHUB_TOKEN }}"
tag_name: ${{ needs.get-version.outputs.version }}
name: ${{ needs.get-version.outputs.version }}
prerelease: ${{ needs.get-version.outputs.is_prerelease == 'true' }}
generate_release_notes: true
files: |
${{ runner.temp }}/artefacts/vitalam-node-${{ needs.get-version.outputs.version }}-x86_64-unknown-linux-gnu.tar.gz
- name: Build release latest
if: ${{ needs.get-version.outputs.is_prerelease != 'true' }}
uses: "marvinpinto/action-automatic-releases@latest"
uses: softprops/action-gh-release@v1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: latest
title: Latest Release ${{ needs.get-version.outputs.version }}
token: "${{ secrets.GITHUB_TOKEN }}"
tag_name: latest
name: Latest ${{ needs.get-version.outputs.version }}
prerelease: false
generate_release_notes: true
files: |
${{ runner.temp }}/artefacts/vitalam-node-${{ needs.get-version.outputs.version }}-x86_64-unknown-linux-gnu.tar.gz
Expand Down
19 changes: 15 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ The following is a set of guidelines for contributing to VITALam and its package
[Styleguides](#styleguides)

- [Git Commit Messages](#git-commit-messages)

[Additional Notes](#additional-notes)

- [Issue and Pull Request Labels](#issue-and-pull-request-labels)
- [Pull Request Labels](#pull-request-labels)

## Code of Conduct

Expand Down Expand Up @@ -138,3 +135,17 @@ While the prerequisites above must be satisfied prior to having your pull reques
- :arrow_up: `:arrow_up:` when upgrading dependencies
- :arrow_down: `:arrow_down:` when downgrading dependencies
- :shirt: `:shirt:` when removing linter warnings

### Pull Request Labels

| Label name | :mag_right: | Description |
| ----------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------ |
| `breaking-change` | [search][search-digicat-label-breaking-change] | Pull requests that add functionality with incompatible API changes (MAJOR SemVer) |
| `feature ` | [search][search-digicat-label-feature] | Pull requests that add functionality with backwards compatibility (MINOR SemVer) |
| `chore` | [search][search-digicat-label-chore] | Simple changes or improvements to the code base so it can be worked with more easily |
| `bug` | [search][search-digicat-label-bug] | Pull requests that fix bugs |

[search-digicat-label-breaking-change]: https://github.com/search?q=is%3Apr+user%3Adigicatapult+label%3Abreaking-change
[search-digicat-label-feature]: https://github.com/search?q=is%3Apr+user%3Adigicatapult+label%3Afeature
[search-digicat-label-chore]: https://github.com/search?q=is%3Apr+user%3Adigicatapult+label%3Achore
[search-digicat-label-bug]: https://github.com/search?q=is%3Apr+user%3Adigicatapult+label%3Abug
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = '2018'
license = 'Apache-2.0'
repository = 'https://github.com/digicatapult/vitalam-node/'
name = 'vitalam-node'
version = '2.6.1'
version = '2.6.2'

[[bin]]
name = 'vitalam-node'
Expand Down

0 comments on commit d65c0f5

Please sign in to comment.