-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.22 KB
/
deploy.yml
File metadata and controls
42 lines (40 loc) · 1.22 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
# .github/workflows/deploy.yml
name: Deploy Docs
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6
with:
repository: runcycles/cycles-protocol
path: cycles-protocol
- uses: actions/setup-node@v6
with:
node-version: 20
- name: Install Chrome dependencies for Puppeteer
run: |
sudo apt-get update
# libasound2 is renamed to libasound2t64 in Ubuntu 24.04 — try both
sudo apt-get install -y \
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \
libgbm1 libpango-1.0-0 libcairo2
sudo apt-get install -y libasound2t64 || sudo apt-get install -y libasound2
- run: npm install
- run: npm run build
- uses: actions/upload-pages-artifact@v5
with:
path: .vitepress/dist
- uses: actions/deploy-pages@v5
id: deployment