Skip to content

Commit

Permalink
Separate clean and build
Browse files Browse the repository at this point in the history
  • Loading branch information
Griefed committed Nov 11, 2023
1 parent 41d4aed commit d1aa4ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit d1aa4ea

Please sign in to comment.