From a0936a199d6a0ce9f89c1a9ba7f36fc36b369e97 Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Sat, 8 May 2021 08:33:55 -0600 Subject: Add workflow --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..ecf6f11c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: Java CI with Gradle + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + - uses: actions/upload-artifact@v2 + with: + name: compiled + path: build/libs/*.jar -- cgit From 9620149225e84be8cdd258a1dff1b2385b5a9b9f Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Sat, 8 May 2021 08:36:10 -0600 Subject: Make it run on all branches --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ecf6f11c..9a827b21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,9 +2,11 @@ name: Java CI with Gradle on: push: - branches: [ master ] + branches: + - '*' pull_request: - branches: [ master ] + branches: + - '*' workflow_dispatch: jobs: build: -- cgit From a4ab012573628ed7f45a2368fd28a78039935aa4 Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Sat, 8 May 2021 08:57:10 -0600 Subject: Auto download hychat as dependency --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a827b21..bcd06396 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,8 @@ jobs: java-version: 1.8 - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Download hychat as a dependency + run: mkdir mods && wget https://cdn.discordapp.com/attachments/782825804983566356/791708191519932426/Hychat-1.12.1-BETA.jar -O mods/Hychat-1.12.1-BETA.jar - name: Build with Gradle run: ./gradlew build - uses: actions/upload-artifact@v2 -- cgit From b55e26ee8e4c7e3e251daa26e9c4f99aa2ff3fe8 Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Sun, 9 May 2021 17:14:49 -0600 Subject: Small changes --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bcd06396..f1706bce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Java CI with Gradle +name: Build on: push: @@ -27,5 +27,5 @@ jobs: run: ./gradlew build - uses: actions/upload-artifact@v2 with: - name: compiled + name: Compiled-files path: build/libs/*.jar -- cgit From 3c8d9aacb95837168bf25083a8c5b586fd666d51 Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Mon, 10 May 2021 18:01:05 -0600 Subject: Fine --- .github/workflows/main.yml | 4 ---- 1 file changed, 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1706bce..0dd0e7e2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,3 @@ jobs: run: mkdir mods && wget https://cdn.discordapp.com/attachments/782825804983566356/791708191519932426/Hychat-1.12.1-BETA.jar -O mods/Hychat-1.12.1-BETA.jar - name: Build with Gradle run: ./gradlew build - - uses: actions/upload-artifact@v2 - with: - name: Compiled-files - path: build/libs/*.jar -- cgit