From d1aa4eae9c58d02beee93c3860c4880ac9e2035f Mon Sep 17 00:00:00 2001 From: Griefed Date: Sat, 11 Nov 2023 13:40:36 +0100 Subject: [PATCH] Separate clean and build --- .github/workflows/prerelease.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index be04e09..4c30501 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -93,8 +93,11 @@ jobs: - name: Make Gradle Wrapper Executable run: chmod +x ./gradlew + - name: Clean + run: ./gradlew clean blockAndItemCodeGen --info --full-stacktrace + - name: Build - run: ./gradlew -Pversion="${{ needs.preparations.outputs.version }}" clean blockAndItemCodeGen build + run: ./gradlew -Pversion="${{ needs.preparations.outputs.version }}" :${{ matrix.name }}:build --info --full-stacktrace - name: Publish (CurseForge/Modrinth/GitHub) uses: Kir-Antipov/mc-publish@v3.3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b06d312..a058341 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,8 +90,11 @@ jobs: - name: Make Gradle Wrapper Executable run: chmod +x ./gradlew + - name: Clean + run: ./gradlew clean blockAndItemCodeGen --info --full-stacktrace + - name: Build - run: ./gradlew -Pversion="${{ needs.preparations.outputs.version }}" clean blockAndItemCodeGen build + run: ./gradlew -Pversion="${{ needs.preparations.outputs.version }}" :${{ matrix.name }}:build --info --full-stacktrace - name: Publish (CurseForge/Modrinth/GitHub) uses: Kir-Antipov/mc-publish@v3.3