Fix crashing when the schematics are rotated #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commit Testing | |
on: [push] | |
jobs: | |
buildJar: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up PATH | |
run: | | |
echo "${ANDROID_HOME}/build-tools/30.0.1" >> $GITHUB_PATH | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
cache: 'gradle' | |
- name: Build mod jar | |
run: ./gradlew deploy -PmodVer=${{startsWith(github.ref, 'refs/tags/') && github.ref_name || github.run_number}} | |
- name: Upload built jar file | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.event.repository.name }} | |
path: build/libs/${{ github.event.repository.name }}.jar | |
- name: Upload as release | |
if: ${{startsWith(github.ref, 'refs/tags/')}} | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
release_name: ${{github.ref_name}} | |
file: build/libs/${{ github.event.repository.name }}.jar |