We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5a906b commit fcbc5daCopy full SHA for fcbc5da
1 file changed
.github/workflows/build.yml
@@ -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
29
+ name: ${{ github.event.repository.name }}_${{ steps.version.outputs.tag }}
30
+ path: build/
0 commit comments