From 5d885122c6b0de26ce491db7d3e9b9b48436d691 Mon Sep 17 00:00:00 2001 From: DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> Date: Tue, 1 Sep 2020 10:22:06 -0400 Subject: Fix github actions build (take 2) --- .github/workflows/build.yml | 46 ++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88ec02f..71f5c6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,38 +17,38 @@ jobs: - uses: actions/checkout@v2 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 - name: Grant execute permission for gradlew - run: chmod +x gradlew + run: chmod +x gradlew - name: Setup ForgeGradle - run: ./gradlew setupCIWorkspace + 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 + 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 + 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 + 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 }} + 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 }} -- cgit