Skip to content

Commit 1c73a71

Browse files
authored
🚀 create deploy_nextjs.yml for ghpage
1 parent 5f99877 commit 1c73a71

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy_nextjs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy WebXDAO Nextjs Landing to Github Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
workflow_dispatch:
9+
10+
jobs:
11+
deployment:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: "lts/*"
21+
cache: "npm"
22+
23+
- name: Build
24+
run: |
25+
npm i
26+
npm run build
27+
npm run export
28+
- name: Deploy
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
32+
publish_dir: ./out

0 commit comments

Comments
 (0)