Skip to content

Commit

Permalink
Add a workflow to automate GitHub release (#3682)
Browse files Browse the repository at this point in the history
* Add a workflow to automate GitHub release

* Add commit category

* Add missing name
  • Loading branch information
nghialv authored May 27, 2022
1 parent 94af679 commit 1eed43e
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/gh-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
push:
branches:
- master
paths:
- 'RELEASE'
pull_request:
types: [opened, synchronize]
branches:
- master
paths:
- 'RELEASE'

jobs:
gh-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pipe-cd/[email protected]
with:
release_file: 'RELEASE'
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: labeler

on:
- pull_request_target

Expand Down
17 changes: 17 additions & 0 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
tag: v0.32.0

releaseNoteGenerator:
useReleaseNoteBlock: true
usePullRequestMetadata: true

commitCategories:
- title: "Breaking Changes"
contains:
- change-category/breaking-change
- title: "New Features"
contains:
- change-category/new-feature
- title: "Notable Changes"
contains:
- change-category/notable-change
- title: "Internal Changes"
4 changes: 0 additions & 4 deletions release/README.md

This file was deleted.

1 change: 0 additions & 1 deletion release/RELEASE

This file was deleted.

0 comments on commit 1eed43e

Please sign in to comment.