-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.07 KB
/
daily-standings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Daily standings
on:
schedule:
- cron: '0 11 * * *'
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 20 ]
os: [ ubuntu-latest ]
steps:
- name: Check out code
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
cache: 'gradle'
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Setup and execute Gradle
uses: gradle/gradle-build-action@v2
- 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@v3
with:
name: trap-league-standings
path: build/libs/league-data-*.xlsx