aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-07-06 15:56:45 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-07-06 15:56:45 -0400
commit4e9dd2b26625a5129bfcf41d8f7dd7e6fdab5a2d (patch)
tree0b2f6d3462eec5cc13e38f2771a89c2c6f86d9a3 /.github
parentb2b3c1fdc719dfbd8da70ce133f09e20b560e595 (diff)
downloadSkyblockHud-Death-Defied-4e9dd2b26625a5129bfcf41d8f7dd7e6fdab5a2d.tar.gz
SkyblockHud-Death-Defied-4e9dd2b26625a5129bfcf41d8f7dd7e6fdab5a2d.tar.bz2
SkyblockHud-Death-Defied-4e9dd2b26625a5129bfcf41d8f7dd7e6fdab5a2d.zip
Add workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..21ab056
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,42 @@
+name: Build
+
+on:
+ push:
+ branches:
+ - '*'
+ paths-ignore:
+ - '.gitignore'
+ pull_request:
+ branches:
+ - '*'
+ paths-ignore:
+ - '.gitignore'
+ 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
+ - uses: actions/cache@v2
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
+ restore-keys: |
+ ${{ runner.os }}-gradle-
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+ - name: Build with Gradle
+ run: ./gradlew build
+ - uses: actions/upload-artifact@v2
+ with:
+ path: build/libs/*.jar
+ - name: Stop gradle daemons
+ run: ./gradlew --stop \ No newline at end of file