Skip to content

v18.1.1

v18.1.1 #12

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build FastJar
# Controls when the workflow will run
on:
release:
types: [published]
jobs:
release:
if: github.repository == 'ikaros-dev/plugin-mikan'
name: Build with java 17 and upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Git submodule init
uses: snickerbockers/submodules-init@v4
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Clean with gradle
run: |
./gradlew clean
- name: Build server with gradle
run: |
./gradlew build -x test
- name: Get Project Version
id: get_version
run: echo "::set-output name=version::$(cat gradle.properties | grep ^version= | cut -d'=' -f2)"
- name: Upload lib jar to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.LI_GUOHAO_TOKEN }}
file: /home/runner/work/plugin-mikan/plugin-mikan/build/libs/plugin-mikan-${{steps.get_version.outputs.version}}.jar
asset_name: plugin-mikan-${{steps.get_version.outputs.version}}.jar