Skip to content

Commit 5ce3ee4

Browse files
committed
Add GitHub release pipeline
1 parent 9ee83e8 commit 5ce3ee4

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: GitHub release
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- name: set up JDK 21
18+
uses: actions/setup-java@v5
19+
with:
20+
java-version: '21'
21+
distribution: 'temurin'
22+
cache: gradle
23+
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x gradlew
26+
- name: Build with Gradle
27+
run: ./gradlew build
28+
29+
github-release:
30+
needs: build
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Create GitHub Release
34+
uses: softprops/action-gh-release@v2
35+
with:
36+
generate_release_notes: true
37+
tag_name: ${{ github.ref_name }}
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
40+

0 commit comments

Comments
 (0)