Repository navigation
64 lines (59 loc) · 1.64 KB
/
Copy pathpages.yml
File metadata and controls
64 lines (59 loc) · 1.64 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
name: Deploy GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
# MLLS uses GitHub Free, which supports Pages only for public repositories.
if: ${{ !github.event.repository.private }}
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
pages: read
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
with:
persist-credentials: false
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1
with:
python-version: '3.12'
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38
with:
node-version: '22'
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install benchmark and website
run: |
python -m pip install '.[dev]'
npm --prefix website ci
- name: Check benchmark workflows
run: python -m pytest
- uses: actions/configure-pages@v5
id: pages
- name: Build reviewed leaderboard
env:
SITE_URL: ${{ steps.pages.outputs.base_url }}
run: npm --prefix website run build
- uses: actions/upload-pages-artifact@v3
with:
path: website/dist
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4