Skip to content

Thêm bstats metrics (#58) #201

Thêm bstats metrics (#58)

Thêm bstats metrics (#58) #201

Workflow file for this run

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/