Skip to content

add GH actions scripts #1

add GH actions scripts

add GH actions scripts #1

Workflow file for this run

name: Build Status
on:
push:
branches: ['*']
pull_request:
env:
JAVA_VERSION: 21
BUILD_NUMBER: ${{ github.run_number }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: ${{ env.JAVA_VERSION }}
cache: 'gradle'
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build --rerun-tasks
- name: Upload build artifacts (Fabric)
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-Fabric-${{ github.sha }}
path: |
build/libs/*.jar
!build/libs/*-dev.jar