Skip to content

Commit

Permalink
ci: Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jul 28, 2024
1 parent 453f606 commit cef3fbd
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 15 deletions.
19 changes: 19 additions & 0 deletions .github/changelog-generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# yaml-language-server: $schema=https://gabe565.github.io/changelog-generator/config.schema.json
tag:
regexp: 'v\d+\.\d+\.\d+'
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
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate Changelog
id: changelog
uses: gabe565/changelog-generator@v1
- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changelog }}
- uses: nowactions/update-majorver@v1
15 changes: 0 additions & 15 deletions .github/workflows/update-majorver.yaml

This file was deleted.

0 comments on commit cef3fbd

Please sign in to comment.