Nightly Builds #97
This file contains hidden or 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: 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/[email protected] | |
| 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/[email protected] | |
| with: | |
| name: nuggetmod-nightly | |
| path: build/libs/nuggetmod-nightly.jar |