generated from TropheusJ/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 34
40 lines (33 loc) · 932 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: build
on: [ pull_request, push, workflow_dispatch ]
jobs:
build:
strategy:
matrix:
java: [ 17 ]
runs-on: ubuntu-latest
env:
PUBLISH_SUFFIX: snapshots
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew buildOrPublish
- name: capture build artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: build/libs/