Skip to content

Commit dc93b6c

Browse files
committed
cname copy
1 parent 3218dac commit dc93b6c

File tree

3 files changed

+96
-0
lines changed

3 files changed

+96
-0
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
- name: Package build
3535
working-directory: ./demo
3636
run: npm run build
37+
38+
# Copy CNAME file
39+
- name: Copy CNAME
40+
run: cp ./demo/CNAME ./demo/src/.vuepress/dist
3741

3842
- name: Deploy 🚀
3943
uses: JamesIves/github-pages-deploy-action@v4
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tags:
6+
description: 'Documentation update'
7+
default: 'Doc update'
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 16.x
18+
19+
# Checout submodule
20+
- name: Checkout submodules
21+
run: git submodule update --init --remote --recursive
22+
23+
# Install
24+
- name: Package update
25+
working-directory: ./demo
26+
run: npm ci
27+
28+
- name: Verify Node.js version
29+
run: |
30+
node -v
31+
npm -v
32+
33+
# Build
34+
- name: Package build
35+
working-directory: ./demo
36+
run: npm run build
37+
38+
- name: Deploy 🚀
39+
uses: JamesIves/github-pages-deploy-action@v4
40+
with:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
BRANCH: gh-pages # The branch the action should deploy to.
43+
FOLDER: ./demo/src/.vuepress/dist # The folder the action should deploy.
44+
CLEAN: true # Automatically remove deleted files from the deploy branch
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tags:
6+
description: 'Documentation update'
7+
default: 'Doc update'
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 16.x
18+
19+
# Checout submodule
20+
- name: Checkout submodules
21+
run: git submodule update --init --remote --recursive
22+
23+
# Install
24+
- name: Package update
25+
working-directory: ./demo
26+
run: npm ci
27+
28+
- name: Verify Node.js version
29+
run: |
30+
node -v
31+
npm -v
32+
33+
# Build
34+
- name: Package build
35+
working-directory: ./demo
36+
run: npm run build
37+
38+
# Copy CNAME file
39+
- name: Copy CNAME
40+
run: cp ./demo/CNAME ./demo/src/.vuepress/dist
41+
42+
- name: Deploy 🚀
43+
uses: JamesIves/github-pages-deploy-action@v4
44+
with:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
BRANCH: gh-pages # The branch the action should deploy to.
47+
FOLDER: ./demo/src/.vuepress/dist # The folder the action should deploy.
48+
CLEAN: true # Automatically remove deleted files from the deploy branch

0 commit comments

Comments
 (0)