aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>2020-09-01 10:20:08 -0400
committerDJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>2020-09-01 10:20:08 -0400
commit6f2cb1d0e313b8c6750c7ebdb3d4da1baef709d3 (patch)
treef27848f5e0a35d997d8cf61a76c526e77d19e94a /.github
parentb6ab017f89de88a4e7c9656d62e2e12c91cab523 (diff)
downloadPerspectiveModv4-6f2cb1d0e313b8c6750c7ebdb3d4da1baef709d3.tar.gz
PerspectiveModv4-6f2cb1d0e313b8c6750c7ebdb3d4da1baef709d3.tar.bz2
PerspectiveModv4-6f2cb1d0e313b8c6750c7ebdb3d4da1baef709d3.zip
Fix github actions build
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml104
1 files changed, 52 insertions, 52 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e90d39e..88ec02f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,54 +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 }}
+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 }}