Skip to content

Commit

Permalink
Add release.yml to generate release notes. (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored and nickdnk committed Jul 31, 2022
1 parent e3764ea commit 15b8b0e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
17 changes: 17 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
changelog:
exclude:
labels:
- ignore-for-release
categories:
- title: Breaking Changes 🛠
labels:
- breaking-changes
- title: Exciting New Features 🎉
labels:
- enhancement
- title: Other Changes
labels:
- "*"
- title: Translations
labels:
- "translations"
30 changes: 18 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,17 @@ jobs:
if: github.ref == 'refs/heads/development'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
with:
name: compiled-files
path: artifacts

- name: "Generate release changelog"
uses: Bullrich/generate-release-changelog@master
id: Changelog
env:
REPO: ${{ github.repository }}
- name: Generate changelog
id: changelog
uses: metcalfc/changelog-generator@v3.0.0
with:
myToken: ${{ secrets.GITHUB_TOKEN }}

- name: Tag And Attach Nightly Build
uses: ncipollo/release-action@v1.8.3
Expand All @@ -84,7 +85,12 @@ jobs:
tag: "v${{ needs.build.outputs.get5-version }}-${{ needs.build.outputs.sha-short }}"
name: "Nightly ${{ needs.build.outputs.get5-version }}-${{ needs.build.outputs.sha-short }}"
body: |
${{ steps.Changelog.outputs.changelog }}
Please note while these are compiled nightly builds, bugs may still exist in the software.
When reporting an issue, please include the debug log by calling `get5_debuginfo` and attach
the file located at addons/sourcemod/logs/get5_debuginfo.txt.
This will help speed up the process of tracking down bugs based
on that specific version.
${{ steps.changelog.outputs.changelog }}
deploy-stable:
needs: [build]
Expand All @@ -94,11 +100,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: "Generate release changelog"
uses: Bullrich/generate-release-changelog@master
id: Changelog
env:
REPO: ${{ github.repository }}
- name: Generate changelog
id: changelog
uses: metcalfc/changelog-generator@v3.0.0
with:
myToken: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/download-artifact@v3
with:
Expand All @@ -115,4 +121,4 @@ jobs:
tag: "v${{ needs.build.outputs.get5-version }}"
name: "Version ${{ needs.build.outputs.get5-version }}"
body: |
${{ steps.Changelog.outputs.changelog }}
${{ steps.changelog.outputs.changelog }}

0 comments on commit 15b8b0e

Please sign in to comment.