Skip to content

Commit

Permalink
ci(build): Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 8, 2024
1 parent e340ffb commit 39d6bcd
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/changelog-generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# yaml-language-server: $schema=https://gabe565.github.io/changelog-generator/config.schema.json
filters:
exclude:
- "^docs"
- "^test"
groups:
- title: Breaking Changes
order: 0
regexp: "^.+?!:"
- title: Features
order: 1
regexp: "^(feat)"
- title: Fixes
order: 2
regexp: "^(fix|perf)"
- title: Others
order: 999
24 changes: 24 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,27 @@ jobs:
with:
name: release
path: com.gabe565.nightscout.streamDeckPlugin

release:
name: Release
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: actions/download-artifact@v4
with:
name: release
- name: Generate Changelog
id: changelog
uses: gabe565/changelog-generator@v1
- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changelog }}
files: com.gabe565.nightscout.streamDeckPlugin

0 comments on commit 39d6bcd

Please sign in to comment.