Skip to content

Commit

Permalink
build(ci): automate releases based on tags and labels
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonymousWP committed Jun 22, 2024
1 parent 0509a91 commit cab0edc
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 cab0edc

Please sign in to comment.