Skip to content

Commit d544305

Browse files
authored
Merge pull request #22 from ChainSafe/publish.yml
Add publish.yml to publish via github pages using github actions rather than travis
2 parents 3133b01 + 742faa6 commit d544305

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Setup Node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '12.x'
17+
- run: yarn
18+
- run: yarn build
19+
- name: Deploy
20+
uses: peaceiris/actions-gh-pages@v2
21+
env:
22+
PERSONAL_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}
23+
PUBLISH_BRANCH: gh-pages
24+
PUBLISH_DIR: ./dist

0 commit comments

Comments
 (0)