Skip to content

Scheduled Build

Scheduled Build #73

name: Scheduled Build
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight
jobs:
build:
name: Maven Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Build with Maven
run: mvn -Dstyle.color=always -B -U verify