|
1 | 1 | name: Build_Schedule |
2 | 2 |
|
3 | 3 | on: |
4 | | - schedule: |
5 | | - - cron: "30 5,21 * * *" |
| 4 | + schedule: |
| 5 | + - cron: "30 5,21 * * *" |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - build: |
9 | | - runs-on: ${{ matrix.os }} |
10 | | - strategy: |
11 | | - fail-fast: True |
12 | | - matrix: |
13 | | - os: [ubuntu-latest] |
14 | | - python-version: [3.13] |
15 | | - node: [ '10' ] |
16 | | - |
17 | | - steps: |
18 | | - - uses: actions/checkout@v4 |
19 | | - - uses: actions/setup-node@v1 |
20 | | - with: |
21 | | - node-version: '${{ matrix.node }}.x' |
22 | | - |
23 | | - - name: Set up Python ${{ matrix.python-version }} |
24 | | - uses: actions/setup-python@v4 |
25 | | - with: |
26 | | - python-version: ${{ matrix.python-version }} |
27 | | - |
28 | | - - name: Install uv |
29 | | - run: pip install uv |
30 | | - |
31 | | - - name: Install packages |
32 | | - run: uv sync --frozen --no-cache --no-install-project |
33 | | - |
34 | | - - name: Cache npm |
35 | | - uses: actions/cache@v2 |
36 | | - with: |
37 | | - path: ~/.npm |
38 | | - key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/package-lock.json') }} |
39 | | - |
40 | | - - name: Install dependencies (npm) |
41 | | - run: | |
42 | | - npm install |
43 | | -
|
44 | | - - name: Create data tables (python) |
45 | | - env: |
46 | | - CLIENT_ID: ${{ secrets.CLIENT_ID }} |
47 | | - CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} |
48 | | - run: | |
49 | | - uv run python main.py |
50 | | -
|
51 | | - - name: Create website (npm) |
52 | | - run: | |
53 | | - npm run build |
54 | | -
|
55 | | - - name: Deploy to GitHub Pages |
56 | | - if: github.ref == 'refs/heads/master' |
57 | | - uses: crazy-max/ghaction-github-pages@v2 |
58 | | - with: |
59 | | - committer: Deployer Bot <deploy@foo.bar> |
60 | | - author: Deployer Bot <deploy@foo.bar> |
61 | | - allow_empty_commit: false |
62 | | - target_branch: gh-pages |
63 | | - build_dir: build |
64 | | - env: |
65 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 8 | + build: |
| 9 | + runs-on: ${{ matrix.os }} |
| 10 | + strategy: |
| 11 | + fail-fast: True |
| 12 | + matrix: |
| 13 | + os: [ubuntu-latest] |
| 14 | + python-version: [3.13] |
| 15 | + node: ["10"] |
| 16 | + |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v4 |
| 19 | + - uses: actions/setup-node@v1 |
| 20 | + with: |
| 21 | + node-version: "${{ matrix.node }}.x" |
| 22 | + |
| 23 | + - name: Set up Python ${{ matrix.python-version }} |
| 24 | + uses: actions/setup-python@v4 |
| 25 | + with: |
| 26 | + python-version: ${{ matrix.python-version }} |
| 27 | + |
| 28 | + - name: Install uv |
| 29 | + run: pip install uv |
| 30 | + |
| 31 | + - name: Install packages |
| 32 | + run: uv sync --frozen --no-cache --no-install-project |
| 33 | + |
| 34 | + - name: Install dependencies (npm) |
| 35 | + run: | |
| 36 | + npm install |
| 37 | +
|
| 38 | + - name: Create data tables (python) |
| 39 | + env: |
| 40 | + CLIENT_ID: ${{ secrets.CLIENT_ID }} |
| 41 | + CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} |
| 42 | + run: | |
| 43 | + uv run python main.py |
| 44 | +
|
| 45 | + - name: Create website (npm) |
| 46 | + run: | |
| 47 | + npm run build |
| 48 | +
|
| 49 | + - name: Deploy to GitHub Pages |
| 50 | + if: github.ref == 'refs/heads/master' |
| 51 | + uses: crazy-max/ghaction-github-pages@v2 |
| 52 | + with: |
| 53 | + committer: Deployer Bot <deploy@foo.bar> |
| 54 | + author: Deployer Bot <deploy@foo.bar> |
| 55 | + allow_empty_commit: false |
| 56 | + target_branch: gh-pages |
| 57 | + build_dir: build |
| 58 | + env: |
| 59 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments