Extenstom Gradle CI #101
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: "BasicMinestomServer Maven CI" | |
on: | |
push: | |
branches: | |
- "master" | |
workflow_dispatch: {} | |
schedule: | |
# https://crontab.guru/#0_18_*_*_* | |
- cron: '0 18 * * *' # Everyday at 6pm | |
jobs: | |
release: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Set up JDK 21" | |
uses: "actions/setup-java@v3" | |
with: | |
java-version: 21 | |
distribution: "corretto" | |
cache: "gradle" | |
- name: "Compiling BasicMinestomServer" | |
run: "./gradlew build --no-daemon" | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
title: "Latest Build" | |
files: | | |
LICENCE.txt | |
build/libs/*.jar |