diff options
author | Johann Bernhardt <johann.bernhardt@tum.de> | 2021-11-07 20:25:12 +0100 |
---|---|---|
committer | Johann Bernhardt <johann.bernhardt@tum.de> | 2021-11-07 20:25:12 +0100 |
commit | 94ba8ebd621f33ea3d340662aa69a0631b3a63ea (patch) | |
tree | 2a8a96ebe2a4f5f6976c81e4bf165d2f065b841a /.github | |
parent | fcec6e0fb21ef6e74b75a7bf9e38f4ee72e9b028 (diff) | |
download | GT5-Unofficial-94ba8ebd621f33ea3d340662aa69a0631b3a63ea.tar.gz GT5-Unofficial-94ba8ebd621f33ea3d340662aa69a0631b3a63ea.tar.bz2 GT5-Unofficial-94ba8ebd621f33ea3d340662aa69a0631b3a63ea.zip |
Draft for unified build script
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/gradle.yml | 43 |
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 + |