Skip to content

Commit 7f105fa

Browse files
authored
Create deploy.yml
1 parent 34681df commit 7f105fa

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ gh-pages ]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Git checkout
12+
uses: actions/checkout@v2
13+
14+
- name: Use Node 12.x
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 12.x
18+
19+
- name: Install Dependencies
20+
run: npm install
21+
22+
- name: Build
23+
run: npm run build
24+
env:
25+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
26+
27+
- name: Deploy to GitHub Pages
28+
uses: JamesIves/github-pages-deploy-action@v4
29+
with:
30+
folder: .
31+
branch: gh-pages

0 commit comments

Comments
 (0)