aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>2021-08-25 09:52:20 -0400
committerDJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>2021-08-25 09:52:20 -0400
commit61afd7b0843ff4a4438eb9f97c4ba29e57408aa5 (patch)
tree3fa8f89498d01cb094d9bfc4d9c09ab47c474f5b /.github/workflows
parent12888a9eb0469a5462e497a29eb4d3d15bb48f3c (diff)
downloadPerspectiveModv4-61afd7b0843ff4a4438eb9f97c4ba29e57408aa5.tar.gz
PerspectiveModv4-61afd7b0843ff4a4438eb9f97c4ba29e57408aa5.tar.bz2
PerspectiveModv4-61afd7b0843ff4a4438eb9f97c4ba29e57408aa5.zip
Revert "this is why we can't have nice things"
This reverts commit 12888a9eb0469a5462e497a29eb4d3d15bb48f3c.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..dd5030b
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,54 @@
+name: Build
+
+on:
+ push:
+ branches:
+ - '**'
+ pull_request:
+
+jobs:
+ build:
+ name: Build
+ runs-on: ubuntu-latest
+ env:
+ PROPERTIES_PATH: gradle.properties
+
+ 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: Setup ForgeGradle
+ run: ./gradlew setupCIWorkspace
+
+ - name: Read mod name
+ id: read_mod_name
+ uses: christian-draeger/read-properties@1.0.1
+ with:
+ path: ${{ env.PROPERTIES_PATH }}
+ property: archivesBaseName
+
+ - name: Read mod version
+ id: read_mod_version
+ uses: christian-draeger/read-properties@1.0.1
+ with:
+ path: ${{ env.PROPERTIES_PATH }}
+ property: version
+
+ - name: Build with Gradle
+ run: ./gradlew build
+
+ - name: Upload mod jar
+ env:
+ mod_jar_name: ${{ steps.read_mod_name.outputs.value }}-${{ steps.read_mod_version.outputs.value }}
+ mod_jar_path: build/libs/${{ steps.read_mod_name.outputs.value }}-${{ steps.read_mod_version.outputs.value }}.jar
+ uses: actions/upload-artifact@v1.0.0
+ with:
+ name: ${{ env.mod_jar_name }}
+ path: ${{ env.mod_jar_path }}