Build_Schedule #3452
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: Build_Schedule | |
on: | |
schedule: | |
- cron: "30 5,21 * * *" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: True | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.13] | |
node: [ '10' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '${{ matrix.node }}.x' | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install uv | |
run: pip install uv | |
- name: Install packages | |
run: uv sync --frozen --no-cache --no-install-project | |
- name: Cache npm | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies (npm) | |
run: | | |
npm install | |
- name: Create data tables (python) | |
env: | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | |
run: | | |
uv run python main.py | |
- name: Create website (npm) | |
run: | | |
npm run build | |
- name: Deploy to GitHub Pages | |
if: github.ref == 'refs/heads/master' | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
committer: Deployer Bot <[email protected]> | |
author: Deployer Bot <[email protected]> | |
allow_empty_commit: false | |
target_branch: gh-pages | |
build_dir: build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |