diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index 3da026726..6d3675c45 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -30,6 +30,18 @@ jobs: - name: ⚒️ Build run: ./gradlew assemble || ./gradlew assemble + - name: 📦 Prepare Jars + run: | + # Find the main jar and append the git hash onto it. + mkdir -p jars + find projects/forge/build/libs projects/fabric/build/libs -type f -regex '.*[0-9.]+\(-SNAPSHOT\)?\.jar$' -exec bash -c 'cp {} "jars/$(basename {} .jar)-$(git rev-parse HEAD).jar"' \; + + - name: 📤 Upload Jar + uses: actions/upload-artifact@v4 + with: + name: CC-Tweaked + path: ./jars + - name: Cache pre-commit uses: actions/cache@v4 with: @@ -54,18 +66,6 @@ jobs: run: ./tools/parse-reports.py if: ${{ failure() }} - - name: 📦 Prepare Jars - run: | - # Find the main jar and append the git hash onto it. - mkdir -p jars - find projects/forge/build/libs projects/fabric/build/libs -type f -regex '.*[0-9.]+\(-SNAPSHOT\)?\.jar$' -exec bash -c 'cp {} "jars/$(basename {} .jar)-$(git rev-parse HEAD).jar"' \; - - - name: 📤 Upload Jar - uses: actions/upload-artifact@v4 - with: - name: CC-Tweaked - path: ./jars - build-core: strategy: fail-fast: false