Skip to content

Commit fcbc5da

Browse files
committed
Add build workflow
1 parent c5a906b commit fcbc5da

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build JAR
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '21'
20+
distribution: 'temurin'
21+
- name: Build with Gradle Wrapper
22+
run: ./gradlew build
23+
- name: Generate version
24+
id: version
25+
run: echo "tag=$(git describe --always)" >> $GITHUB_OUTPUT
26+
- name: Upload build artifacts
27+
uses: actions/upload-artifact@v6
28+
with:
29+
name: ${{ github.event.repository.name }}_${{ steps.version.outputs.tag }}
30+
path: build/

0 commit comments

Comments
 (0)