Skip to content

Commit 97a38c7

Browse files
committed
chore: Add released workflows config.
1 parent d4d6dd8 commit 97a38c7

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
branches:
55
- master
6-
tags:
7-
- v*
86
jobs:
97
build-deploy:
108
runs-on: ubuntu-18.04

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Create Release
2+
on:
3+
push:
4+
tags:
5+
- 'v*' # Push events to matching v*, i.e. v1.0, v0.4.4
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
# To use this repository's private action, you must check out the repository
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Generate changelog
16+
id: changelog
17+
uses: jaywcjlove/changelog-generator@main
18+
with:
19+
myToken: ${{ secrets.GITHUB_TOKEN }}
20+
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
21+
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
22+
23+
- name: Create Release
24+
id: create_release
25+
uses: actions/create-release@latest
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
tag_name: ${{ github.ref }}
30+
release_name: ${{ github.ref }}
31+
body: |
32+
${{ steps.changelog.outputs.compareurl }}
33+
${{ steps.changelog.outputs.changelog }}
34+
draft: false
35+
prerelease: false

0 commit comments

Comments
 (0)