🚀 add deployment script

This commit is contained in:
platane
2020-07-19 18:09:32 +02:00
parent fe6f4734df
commit d422e354a7

24
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: deploy
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
- uses: bahmutov/npm-install@v1
- run: yarn build:demo
- uses: crazy-max/ghaction-github-pages@068e494
with:
target_branch: gh-pages
build_dir: packages/demo/dist
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN_GH_PAGES }}