-
Notifications
You must be signed in to change notification settings - Fork 147
73 lines (62 loc) · 1.96 KB
/
main.yml
File metadata and controls
73 lines (62 loc) · 1.96 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Main
on:
push:
branches:
- main
jobs:
tests:
strategy:
matrix:
python: ["3.10", "3.11", "3.12", "3.13"]
uses: ./.github/workflows/testing.yml
with:
python: ${{ matrix.python }}
args: -m "smoke"
ui-tests:
uses: ./.github/workflows/ui-testing.yml
quality:
strategy:
matrix:
python: ["3.10", "3.11", "3.12", "3.13"]
uses: ./.github/workflows/quality.yml
with:
python: ${{ matrix.python }}
ui-quality:
uses: ./.github/workflows/ui-quality.yml
deploy-ui-build:
needs: [ui-quality, ui-tests]
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Node.js 22
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '22'
- name: Install dependencies
run: npm ci
- name: Build app to root
id: build
run: |
# Export vars to ensure they are loaded before build
export $(grep -v '^#' .env.development | xargs)
# Set asset prefix and base path with PR number
ASSET_PREFIX=https://raw.githubusercontent.com/vllm-project/guidellm/refs/heads/gh-pages/ui/dev
BASE_PATH=/ui/dev
GIT_SHA=${{ github.sha }}
export ASSET_PREFIX=${ASSET_PREFIX}
export BASE_PATH=${BASE_PATH}
export GIT_SHA=${GIT_SHA}
npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src/ui/out
destination_dir: ui/dev
keep_files: false
user_name: ${{ github.actor }}
user_email: ${{ github.actor }}@users.noreply.github.com
publish_branch: gh-pages