generated from BurnySc2/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.41 KB
/
pythonpackage.yml
File metadata and controls
58 lines (47 loc) · 1.41 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
name: Build_MMR_ranges
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.13]
node: ["20"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
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: 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 <deploy@foo.bar>
author: Deployer Bot <deploy@foo.bar>
allow_empty_commit: false
target_branch: gh-pages
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}