Skip to content

Commit 5e9bdf3

Browse files
authored
Create main.yml
1 parent ed29f5d commit 5e9bdf3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build and Deploy on gh-page
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
12+
with:
13+
persist-credentials: false
14+
15+
- name: Use Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '12.x'
19+
- name: Install dependencies
20+
run: yarn install --frozen-lockfile
21+
- name: Build
22+
run: yarn build-storybook
23+
24+
- name: Deploy
25+
uses: JamesIves/github-pages-deploy-action@releases/v3
26+
with:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
BRANCH: gh-pages # The branch the action should deploy to.
29+
FOLDER: public # The folder the action should deploy.
30+

0 commit comments

Comments
 (0)