From 1a173a8c8c29ab1ba46cf6d3d7b5e96addbd9f71 Mon Sep 17 00:00:00 2001 From: Eion Dailey Date: Fri, 3 Apr 2020 17:30:47 -0400 Subject: [PATCH] Possible start of shifting to Github Actions I have absolutely no idea if this is gonna work first try, but hey, it's a start and if it don't work, I'll blow it up and start again. --- .github/workflows/gradle.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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 0000000..26b0602 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,33 @@ +# This workflow will build a Java project with Gradle +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle + +name: Build Mod + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +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 + - name: Upload to Release + uses: JasonEtco/upload-to-release@v0.1.1 + with: + args: justenoughids-*.jar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +