Skip to content

Commit edd6495

Browse files
committed
ci: add workflow for master and test release drafter
1 parent e79f673 commit edd6495

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/release-drafter.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name-template: $NEXT_PATCH_VERSION
2+
tag-template: $NEXT_PATCH_VERSION
3+
change-template: '- $TITLE (#$NUMBER) @$AUTHOR'
4+
categories:
5+
- title: Major Changes
6+
label: "changes: major"
7+
8+
- title: Minor Changes
9+
label: "changes: minor"
10+
11+
- title: Patch Changes
12+
label: "changes: patch"
13+
14+
template: |
15+
## Non-version Changes
16+
$CHANGES

.github/workflows/build-master.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build master
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout latest code
13+
uses: actions/checkout@v2
14+
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
20+
- name: Setup build cache
21+
uses: actions/cache@v1
22+
with:
23+
path: ~/.gradle/caches
24+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
25+
restore-keys: |
26+
${{ runner.os }}-gradle-
27+
- name: Build with Gradle
28+
run: ./gradlew build
29+
30+
release-notes:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Release Drafter
34+
uses: release-drafter/release-drafter@v5
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)