34 lines
823 B
YAML
34 lines
823 B
YAML
name: Nightly Builds
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *' # Runs at midnight UTC every day
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4.6.0
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|
|
|
|
- name: Rename build artifact
|
|
run: mv build/libs/*.jar build/libs/nuggetmod-nightly.jar
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v4.5.0
|
|
with:
|
|
name: nuggetmod-nightly
|
|
path: build/libs/nuggetmod-nightly.jar |