Skip to content

Release 1.1.9

Release 1.1.9 #14

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build Release
# Controls when the action will run.
on:
release:
types: [created]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build -x test
- uses: actions/github-script@v2
id: fname
with:
result-encoding: string
script: |
const fs = require("fs")
return fs.readdirSync("./build/libs/").filter(e => !e.endsWith("dev.jar") && !e.endsWith("sources.jar") && e.endsWith(".jar"))[0].replace(".jar", "");
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: ./build/libs/${{ steps.fname.outputs.result }}.jar application/jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}