aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohann Bernhardt <johann.bernhardt@tum.de>2021-11-07 16:36:54 +0100
committerJohann Bernhardt <johann.bernhardt@tum.de>2021-11-07 16:36:54 +0100
commitcfbbcc87770da532f9bed9e3e4b824200970c34c (patch)
treeaaedd3dd08329f3244b659db5e111d8c0a0cc92c /.github
parent89ae9c98b8ace8bbd25d6fa2a0ade40e588aef38 (diff)
downloadGT5-Unofficial-cfbbcc87770da532f9bed9e3e4b824200970c34c.tar.gz
GT5-Unofficial-cfbbcc87770da532f9bed9e3e4b824200970c34c.tar.bz2
GT5-Unofficial-cfbbcc87770da532f9bed9e3e4b824200970c34c.zip
Unify build script draft
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/gradle.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
new file mode 100644
index 0000000000..75338898fa
--- /dev/null
+++ b/.github/workflows/gradle.yml
@@ -0,0 +1,43 @@
+# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
+
+name: Java CI with Gradle
+
+on:
+ push:
+ branches: [ master, main ]
+ pull_request:
+ branches: [ master, main ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Set up JDK 8
+ uses: actions/setup-java@v2
+ with:
+ java-version: '8'
+ distribution: 'adopt'
+ cache: gradle
+
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+
+ - name: Setup the workspace
+ run: ./gradlew setupCIWorkspace
+
+ - name: Build the mod
+ run: ./gradlew build
+
+ - uses: "marvinpinto/action-automatic-releases@latest"
+ with:
+ repo_token: "${{ secrets.GITHUB_TOKEN }}"
+ automatic_release_tag: "latest"
+ prerelease: true
+ title: "Latest Development Build"
+ files: build/libs/*.jar
+