Skip to content

Commit c11c317

Browse files
committed
Setup github build workflow
1 parent ec17bac commit c11c317

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

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

0 commit comments

Comments
 (0)