Skip to content

build

build #7

Workflow file for this run

name: build
on:
push:
branches: [ 'main' ]
paths:
- src/**
- build.gradle
- gradle.properties
- settings.gradle
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Cache gradle files
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
./.gradle/loom-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew remapJar
- name: Move jars to root
run: mv ./versions/*/build/libs/*.jar .
- name: Upload JAR file
uses: actions/upload-artifact@v3
with:
name: QuickBackupMulti-Fabric
path: |
*.jar