Skip to content

Implements #40 in new branch #10

Implements #40 in new branch

Implements #40 in new branch #10

Workflow file for this run

name: Build Mod
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Android SDK tools
run: echo "$ANDROID_HOME/build-tools/34.0.0" >> $GITHUB_PATH
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Get short commit hash
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Build MultiCrafter
run: |
chmod +x gradlew
./gradlew :main:deploy
./gradlew distInjection
- uses: actions/upload-artifact@v3
with:
name: MultiCrafterMod
path: main/build/tmp/deploy/*.jar
- uses: actions/upload-artifact@v3
with:
name: MultiCrafterLibDist
path: build/tmp/distInjection/*.zip