Skip to content

Commit 68ce77a

Browse files
add workflow to deploy prod to gh-pages
1 parent 309e78c commit 68ce77a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Diff for: .github/workflows/deploy.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# workflow that builds production version of app and deploys it to GitHub Pages
2+
name: Deploy
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
env:
10+
CI: false
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
- name: Set up Node
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: "14"
22+
- name: Install packages
23+
run: yarn install
24+
- name: Build app
25+
run: yarn build
26+
- name: Deploy to gh-pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
keep_files: false
30+
publish_dir: ./dist
31+
publish_branch: gh-pages
32+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)