-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.06 KB
/
deploy.yml
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
name: Deploy docs
on:
push:
branches:
- master
jobs:
deploy-docs:
strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2147483647
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Install submodules
run: git submodule update --init
- name: Build wasm files
run: cd ./docs/.vuepress/realcugan-ncnn-webassembly && bash build.sh
- name: Build Docs
run: |-
pnpm docs:build
> docs/.vuepress/dist/.nojekyll
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/.vuepress/dist