From 58125c04dfa69c0ee775d89c215aa6ca620d0b9b Mon Sep 17 00:00:00 2001 From: BitHeaven Date: Tue, 21 Jan 2025 02:55:40 +0500 Subject: [PATCH] Again update workflow --- .gitea/workflows/build.yml | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b9ef57c..987c088 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -11,29 +11,43 @@ jobs: java: [ '17' ] runs-on: ubuntu-latest steps: - - name: checkout repository + - name: Checkout Code uses: actions/checkout@v4 - - name: setup jdk ${{ matrix.java }} + - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v4 with: distribution: 'liberica' java-version: ${{ matrix.java }} - - uses: actions/cache@v4 + - name: Cache Gradle packages + uses: actions/cache@v4 with: path: | ~/.gradle/caches - ~/.gradle/loom-cache ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }} + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- - - name: make gradle wrapper executable - run: chmod +x ./gradlew - - - name: build + - name: Build with Gradle run: ./gradlew build + - name: Upload Mod JAR + uses: actions/upload-artifact@v3 + with: + name: create-air-fabric + path: build/libs/*.jar + + upload-release: + runs-on: ubuntu-latest + needs: build + steps: + - name: Download build artifact + uses: actions/download-artifact@v3 + with: + name: create-air-fabric + - name: Make release uses: akkuman/gitea-release-action@v1 with: @@ -41,4 +55,5 @@ jobs: md5sum: true sha256sum: true files: |- - build/libs/** + fabric-mod.jar +# build/libs/**