forked from nushell/nushell.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 706 Bytes
/
Copy pathdeploy.yml
File metadata and controls
33 lines (29 loc) · 706 Bytes
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
name: deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3.2.0
with:
node-version: '16'
- run: npm install
- name: Build Static Docs
env:
NODE_OPTIONS: '--max_old_space_size=8192'
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.vuepress/dist
cname: www.nushell.sh