Skip to content

Daily standings

Daily standings #351

name: Daily standings
on:
schedule:
- cron: '0 11 * * *'
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 21 ]
os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
cache: 'gradle'
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Setup and execute Gradle
uses: gradle/gradle-build-action@v3
- name: Run Gradle build
shell: bash
run: >-
export SPRING_PROFILES_ACTIVE=test && ./gradlew build --no-daemon --info
- name: Generate file
run: |
cd build/libs/
ls -ltra
mv trap-*.jar trap.jar
java -jar trap.jar
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: trap-league-standings
path: build/libs/league-data-*.xlsx