Skip to content

Scheduled Build

Scheduled Build #113

name: Scheduled Build
on:
schedule:
- cron: '0 2 * * 0' # Every Sunday at 2am
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
- name: Build site
run: mvn -Dstyle.color=always -B -U site site:stage post-site