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' ]
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/**