From b1ac8328779fbc02397f613e34ea5751d0e11466 Mon Sep 17 00:00:00 2001 From: blockparole <48992448+blockparole@users.noreply.github.com> Date: Sat, 2 Nov 2019 00:54:53 +0100 Subject: [PATCH 1/6] added github action gradle build added automatic build on push via gradle, executed each push via github actions --- .github/workflows/gradle.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 00000000..0e123121 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,17 @@ +name: Java CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Gradle + run: ./gradlew build From 92358ec7e58ee61b45758f04ca277f1380d78030 Mon Sep 17 00:00:00 2001 From: blockparole <48992448+blockparole@users.noreply.github.com> Date: Sat, 2 Nov 2019 01:08:05 +0100 Subject: [PATCH 2/6] Upload artifact after build Upload artifact after build using: actions/upload-artifact@v1.0.0 --- .github/workflows/gradle.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 0e123121..e33674a2 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,4 +1,4 @@ -name: Java CI +name: Gradle CI on: [push] @@ -15,3 +15,5 @@ jobs: java-version: 1.8 - name: Build with Gradle run: ./gradlew build + - name: Upload artifact + uses: actions/upload-artifact@v1.0.0 From eba65461238b219ae00f4b94d40260dac029f709 Mon Sep 17 00:00:00 2001 From: blockparole <48992448+blockparole@users.noreply.github.com> Date: Sat, 2 Nov 2019 01:15:47 +0100 Subject: [PATCH 3/6] artifact path and name --- .github/workflows/gradle.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e33674a2..bdb516bb 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -16,4 +16,7 @@ jobs: - name: Build with Gradle run: ./gradlew build - name: Upload artifact - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@master + with: + name: KAMI-*-release.jar + path: /home/runner/work/KAMI/KAMI/build/libs/ From 59ca1e3a7bf29ad4d55cb95e0d8cb0715f18ef5c Mon Sep 17 00:00:00 2001 From: blockparole <48992448+blockparole@users.noreply.github.com> Date: Sat, 2 Nov 2019 01:21:32 +0100 Subject: [PATCH 4/6] cant use wildcards in filename --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index bdb516bb..a0251503 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,4 +1,4 @@ -name: Gradle CI +name: Gill Bates on: [push] @@ -18,5 +18,5 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@master with: - name: KAMI-*-release.jar + name: KAMI-b9-release.jar path: /home/runner/work/KAMI/KAMI/build/libs/ From 2e38a2287fd2d7d80b2acd9c51fb1ca0997702f5 Mon Sep 17 00:00:00 2001 From: blockparole <48992448+blockparole@users.noreply.github.com> Date: Sat, 2 Nov 2019 01:42:01 +0100 Subject: [PATCH 5/6] usage example was kinda strange --- .github/workflows/gradle.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index a0251503..d85211cd 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -16,7 +16,7 @@ jobs: - name: Build with Gradle run: ./gradlew build - name: Upload artifact - uses: actions/upload-artifact@master + uses: actions/upload-artifact@v1 with: - name: KAMI-b9-release.jar - path: /home/runner/work/KAMI/KAMI/build/libs/ + name: KAMI + path: /home/runner/work/KAMI/KAMI/build/libs/KAMI-b9-release.jar From f479685f5cc61b41678aa499bf0892f4b638d090 Mon Sep 17 00:00:00 2001 From: blockparole <48992448+blockparole@users.noreply.github.com> Date: Sun, 3 Nov 2019 19:31:23 +0100 Subject: [PATCH 6/6] change ci name --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index d85211cd..72695d96 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,4 +1,4 @@ -name: Gill Bates +name: Java CI on: [push]