forked from wednesday-solutions/react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (24 loc) · 642 Bytes
/
Copy pathcd.yml
File metadata and controls
27 lines (24 loc) · 642 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
name: React Template CD
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup git token
uses: fregante/setup-git-token@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: yarn
- name: Deploy storybooks and gh-pages
env:
DEPLOY_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
eval "$(ssh-agent -s)"
ssh-add - <<< "${DEPLOY_KEY}"
yarn deploy