Skip to content

Commit

Permalink
Add GitHub automatic release (#173)
Browse files Browse the repository at this point in the history
This automatically creates a GitHub release when a matching tag is created in this repository.
  • Loading branch information
jpogran committed Apr 4, 2022
1 parent c584f13 commit 3672145
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/release.yml
@@ -0,0 +1,26 @@
changelog:
categories:
- title: NOTES
labels:
- note
- documentation
- title: FEATURES
labels:
- feature
- title: ENHANCEMENTS
labels:
- enhancement
- documentation
- title: BUG FIXES
labels:
- bug
- title: INTERNAL
labels:
- dependencies
- "*"
exclude:
labels:
- duplicate
- wontfix
- question
- invalid
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,20 @@
name: Publish GitHub Release

permissions:
contents: write # for creating a release and uploading release artifacts

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
release:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: GH Release
run: |
gh release create "${GITHUB_REF#refs/tags/}" --generate-notes
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 3672145

Please sign in to comment.