create-air-fabric/.gitea/workflows/build.yml
BitHeaven 58125c04df
Some checks failed
build / upload-release (push) Blocked by required conditions
build / build (17) (push) Has been cancelled
Again update workflow
2025-01-21 02:55:40 +05:00

60 lines
1.4 KiB
YAML

name: build
on:
pull_request: {}
push: {}
workflow_dispatch: {}
jobs:
build:
strategy:
matrix:
java: [ '17' ]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- 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:
name: Create Air Fabric 1.0-${{ gitea.run_id }} for 1.20.1
md5sum: true
sha256sum: true
files: |-
fabric-mod.jar
# build/libs/**