Again update workflow
This commit is contained in:
parent
c52aebf2a8
commit
58125c04df
@ -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/**
|
||||
|
Loading…
Reference in New Issue
Block a user