Skip to content

Use GradleUtils for versioning (#28) #4

Use GradleUtils for versioning (#28)

Use GradleUtils for versioning (#28) #4

Workflow file for this run

name: 'Build'
on:
workflow_call:
push:
branches:
- '1.*'
permissions:
contents: read
statuses: write
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
with:
fetch-depth: 100
fetch-tags: true
- name: 'Set up JDK 17'
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: 'Build with Gradle'
uses: gradle/gradle-build-action@v2
with:
arguments: build
cache-read-only: false
- name: 'Move artifacts'
shell: bash
run: |
mkdir artifacts
cp Fabric/build/libs/*.jar artifacts
cp Forge/build/libs/*.jar artifacts
cp NeoForge/build/libs/*.jar artifacts
- uses: actions/upload-artifact@v3
with:
if-no-files-found: error
path: artifacts/*