Daily standings #477
This file contains 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: 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@v4 | |
- 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 |