Skip to content

fixed release workflow #116

fixed release workflow

fixed release workflow #116

Workflow file for this run

name: Build Push Changes
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Android SDK tools
run: echo "$ANDROID_HOME/build-tools/30.0.3" >> $GITHUB_PATH
- name: Set up JDK 17
uses: actions/setup-java@v2
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@v2
with:
name: MultiCrafterMod
path: main/build/tmp/deploy/*.jar
- uses: actions/upload-artifact@v2
with:
name: MultiCrafterLibDist
path: build/tmp/distInjection/*.zip