@@ -29,13 +29,13 @@ jobs:
2929 - name : setup
3030 id : setup
3131 uses : SpongePowered/.github/.github/actions/setup-java-env@master
32- if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
32+ if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla' || matrix.project == 'forge' "
3333 with :
3434 runtime_version : 21
3535 publishing_branch_regex : ' api-\d+'
3636 - name : setup / cache minecraft dependencies
3737 uses : " actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf" # v4.2.2
38- if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
38+ if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla' || matrix.project == 'forge' "
3939 with :
4040 path : |
4141 ${{ github.workspace}}/buildSrc/.gradle/
@@ -44,18 +44,18 @@ jobs:
4444 restore-keys : |
4545 ${{ runner.os }}-minecraft-${{ env.CACHE_REV }}-
4646 - name : setup / environment
47- if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
47+ if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla' || matrix.project == 'forge' "
4848 run : |
4949 echo "GIT_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
5050 echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
5151 echo "BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
5252 - name : build with Gradle
53- if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
53+ if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla' || matrix.project == 'forge' "
5454 run : ./gradlew -Pprojects=${{ matrix.project }},testplugins build --stacktrace
5555 env :
5656 CI_SYSTEM : Github Actions
5757 - name : Archive artifacts for build
58- if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
58+ if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla' || matrix.project == 'forge' "
5959 uses : " actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3" # v4.3.1
6060 with :
6161 name : Sponge ${{ matrix.project }} Jars
6464 ${{ github.workspace }}/build/libs/*.jar
6565 ${{ github.workspace }}/${{ matrix.project }}/build/libs/*.jar
6666 - name : ${{ matrix.gradleProject }} Production Jar
67- if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
67+ if : " !startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla' || matrix.project == 'forge' "
6868 uses : " actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3" # v4.3.1
6969 with :
7070 name : ${{ matrix.gradleProject }} Production Jar
0 commit comments