diff options
author | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2020-09-01 10:24:28 -0400 |
---|---|---|
committer | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2020-09-01 10:24:28 -0400 |
commit | e91ac19751b1c3b1d1b83863b2250c888e76217b (patch) | |
tree | e8f8e41c534b43e0d50c17b66c4a801ca93ce908 /.github | |
parent | 51b25e1ffa694994ac7ae0f41a82472c346d4604 (diff) | |
download | PerspectiveModv4-e91ac19751b1c3b1d1b83863b2250c888e76217b.tar.gz PerspectiveModv4-e91ac19751b1c3b1d1b83863b2250c888e76217b.tar.bz2 PerspectiveModv4-e91ac19751b1c3b1d1b83863b2250c888e76217b.zip |
YAML is pain
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a8fd6bf..dd5030b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,42 +13,42 @@ jobs: 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 }} + 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 }} |