Skip to content

Daily standings

Daily standings #401

name: Daily standings
on:
schedule:
- cron: '0 11 * * *'
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 22 ]
os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 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/actions/setup-gradle@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