File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : publish
2+
3+ on :
4+ pull_request :
5+ branches : [main]
6+ push :
7+ branches : [main]
8+
9+ jobs :
10+ checks :
11+ if : github.event_name != 'push'
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v1
15+ - uses : actions/setup-node@v1
16+ with :
17+ node-version : ' 14.x'
18+ - name : Test Build
19+ run : |
20+ yarn install --frozen-lockfile
21+ npm run build
22+ gh-release :
23+ if : github.event_name != 'pull_request'
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@v1
27+ - uses : actions/setup-node@v1
28+ with :
29+ node-version : ' 14.x'
30+ - uses : webfactory/ssh-agent@v0.5.0
31+ with :
32+ ssh-private-key : ${{ secrets.GH_PAGES_DEPLOY }}
33+ - name : Release to GitHub Pages
34+ env :
35+ USE_SSH : true
36+ GIT_USER : git
37+ run : |
38+ git config --global user.email "jakeboone02@gmail.com"
39+ git config --global user.name "Jake Boone"
40+ yarn install --frozen-lockfile
41+ npm run deploy
You can’t perform that action at this time.
0 commit comments