Skip to content

Build and Release

Build and Release #27

Workflow file for this run

name: Build and Release
on:
workflow_dispatch:
branches:
- master
jobs:
validate-gradle:
name: "Validate Gradle wrapper"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: gradle/wrapper-validation-action@v1
build:
name: "Build"
strategy:
matrix:
java: [ 16 ] # Build on Java 16
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew run --stacktrace --no-daemon