Skip to content

Commit d951915

Browse files
committed
Add github build workflow
1 parent 184f43c commit d951915

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- "master"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-24.04
11+
if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'ci skip')"
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Validate gradle wrapper
18+
uses: gradle/actions/wrapper-validation@v4
19+
20+
- name: Setup java 21
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: 21
24+
distribution: temurin
25+
cache: gradle
26+
27+
- name: Build plugin
28+
run: ./gradlew build --no-daemon
29+
30+
- name: Upload plugin jars
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: CloudChat-Artifacts
34+
path: build/libs/CloudChat-*
35+
if-no-files-found: error

0 commit comments

Comments
 (0)