Skip to content

Forge Version Github Action #9

Forge Version Github Action

Forge Version Github Action #9

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1000
fetch-tags: true
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'microsoft'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Clean
uses: gradle/gradle-build-action@v2
with:
arguments: clean
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Get short SHA
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: Jrrp-Forge-${{ env.SHORT_SHA }}
path: '**/build/libs/'