Java CI Nightly Build #230
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: Java CI Nightly Build | |
| on: | |
| schedule: | |
| - cron: '0 2 * * *' # run at 2 AM UTC | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| # https://github.com/actions/checkout | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v4 | |
| # https://github.com/actions/setup-java | |
| - name: ☕️ Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| # https://github.com/gradle/actions | |
| - name: 🔧 Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: ⚙️ Build with Gradle | |
| run: ./gradlew build | |
| # https://github.com/actions/upload-artifact | |
| - name: 📦 Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Package | |
| path: build/libs | |
| - name: 🚀 Upload Nightly Build | |
| uses: djnicholson/release-action@v2.11 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| release-name: 'Nightly' | |
| tag-name: 'nightly' | |
| asset-name: 'spring-boot-kisses-angular-0.5.16-nightly.jar' | |
| file: './build/libs/spring-boot-kisses-angular-0.5.16.jar' |