Again update workflow
Some checks failed
build / upload-release (push) Blocked by required conditions
build / build (17) (push) Has been cancelled

This commit is contained in:
BitHeaven 2025-01-21 02:55:40 +05:00
parent c52aebf2a8
commit 58125c04df

View File

@ -11,29 +11,43 @@ jobs:
java: [ '17' ] java: [ '17' ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout repository - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: setup jdk ${{ matrix.java }} - name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
distribution: 'liberica' distribution: 'liberica'
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
- uses: actions/cache@v4 - name: Cache Gradle packages
uses: actions/cache@v4
with: with:
path: | path: |
~/.gradle/caches ~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper ~/.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 - name: Build with Gradle
run: chmod +x ./gradlew
- name: build
run: ./gradlew build 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 - name: Make release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
with: with:
@ -41,4 +55,5 @@ jobs:
md5sum: true md5sum: true
sha256sum: true sha256sum: true
files: |- files: |-
build/libs/** fabric-mod.jar
# build/libs/**