upgrade kotlin & bump version #211
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: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
build: | |
if: (github.event_name == 'pull_request' && github.event.action == 'labeled') || github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/wrapper-validation-action@v1 | |
- uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: 8 | |
cache: "gradle" | |
- name: Get MineVNLib version | |
uses: pozetroninc/github-action-get-latest-release@master | |
with: | |
owner: minevn | |
repo: minevn-library | |
id: minevnlib-plugin | |
- name: Build DotMan & download MineVNLib | |
run: | | |
chmod +x ./gradlew | |
./gradlew assemble | |
mkdir -p target | |
cp ./dotman-plugin/build/libs/DotMan.jar ./target/DotMan.jar | |
wget -O ./target/MineVNLib.jar "https://github.com/minevn/minevn-library/releases/download/${{ steps.minevnlib-plugin.outputs.release }}/MineVNLib.jar" | |
- name: Upload build artifact | |
uses: actions/[email protected] | |
with: | |
name: "DotMan" | |
path: ./target/ |