Skip to content

Commit

Permalink
Merge pull request #111 from Security-Tools-Alliance/107-cirelease-au…
Browse files Browse the repository at this point in the history
…tomate-releases

build(ci): automate releases based on tags and labels
  • Loading branch information
psyray authored Jun 24, 2024
2 parents e34625c + cab0edc commit a5b42c8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
changelog:
categories:
- title: Added
labels:
- enhancement
- title: Fixed
labels:
- bug
- title: Miscellaneous
labels:
- refactor
- dependencies
- documentation
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
push:
branches:
- master
tags:
- v?[0-9]+.[0-9]+.[0-9]+ # semver

jobs:
release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true

0 comments on commit a5b42c8

Please sign in to comment.