-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.37 KB
/
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
41
42
name: Build Test
on:
push:
paths-ignore:
- "**.md"
- "renovate.json"
pull_request:
paths-ignore:
- "**.md"
- "renovate.json"
jobs:
build-test:
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
name: Build with Java 8
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: "8"
distribution: "adopt"
cache: "maven"
- name: Check CrackShot existence
id: check_crackshot
uses: andstor/file-existence-action@v2
with:
files: "/home/runner/.m2/repository/com/shampaggon/CrackShot/0.98.11/CrackShot-0.98.11.pom"
- name: Download CrackShot v0.98.11
if: steps.check_crackshot.outputs.files_exists == 'false'
run: curl -L -o CrackShot.jar https://dev.bukkit.org/projects/crackshot/files/3151915/download
- name: Install CrackShot into local mvn repo
if: steps.check_crackshot.outputs.files_exists == 'false'
run: mvn install:install-file -Dfile=./CrackShot.jar -DgroupId=com.shampaggon -DartifactId=CrackShot -Dversion=0.98.11 -Dpackaging=jar -DgeneratePom=true
- run: java -version
- run: mvn --version
- run: mvn -B package