Skip to content

Use Minecraft built with in version string #2

Use Minecraft built with in version string

Use Minecraft built with in version string #2

Workflow file for this run

name: Java CI with Gradle
on:
push:
tags-ignore:
- '**'
branches:
- '**'
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: true
- uses: gradle/wrapper-validation-action@v1
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Build with Gradle
run: ./gradlew build --no-daemon
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
build/libs/