Daily standings #375
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: [ 21 ] | |
os: [ ubuntu-latest ] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 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 |