Merge pull request #71 from Cong0707/patch-1 #1449
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: Build | |
on: [push, workflow_dispatch] | |
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 20 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 20 | |
- name: Change permissions | |
run: chmod +x ./gradlew | |
- name: Build mod jar | |
run: ./gradlew deploy | |
- name: Upload built jar file | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.event.repository.name }} | |
path: build/libs/${{ github.event.repository.name }}.jar |