Skip to content

Commit f9b4c74

Browse files
authored
Create gradle.yml
1 parent 48a775a commit f9b4c74

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
# This workflow will build a Java project with Gradle
3+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
4+
5+
name: Java CI with Gradle
6+
on: [ push, pull_request ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: gradle/wrapper-validation-action@v1
15+
- name: Set up JDK 8
16+
uses: actions/setup-java@v2
17+
with:
18+
distribution: temurin
19+
java-version: 8
20+
cache: gradle
21+
- name: Grant execute permission for gradlew
22+
run: chmod +x gradlew
23+
- name: Test with Gradle
24+
run: ./gradlew test
25+
- name: Build with Gradle
26+
run: ./gradlew build
27+
- name: Upload artifacts
28+
uses: "actions/upload-artifact@v2.2.3"
29+
with:
30+
name: "IridiumSkyblock"
31+
path: "build/libs/IridiumColorAPI-*.jar"

0 commit comments

Comments
 (0)