Skip to content

Java CI with Gradle #43

Java CI with Gradle

Java CI with Gradle #43

Workflow file for this run

name: Java CI with Gradle
on:
schedule:
- cron: "0 22 * * *"
concurrency:
group: "latest"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'
java-package: 'jdk'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Fetch Build Time
run: echo "time=$(date +%Y-%m-%d)" >> $GITHUB_ENV
- name: Build
run: ./gradlew build
- name: Remove *-sources.jar
run: rm ./build/libs/*-sources.jar || true
- uses: "0xDylan/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: nightly-${{ env.TIME }}
prerelease: true
title: Nightly Build ${{ env.TIME }}
files: |
./build/libs/*.jar