Skip to content

Commit 3a17917

Browse files
authored
Build and deploy playground on CI (rjsf-team#1722)
* Build and deploy playground on CI * Update ci.yml
1 parent d2f6b3c commit 3a17917

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,28 @@ jobs:
2929
- run: npm run cs-check
3030
env:
3131
CI: true
32+
33+
deploy:
34+
runs-on: ubuntu-latest
35+
needs: build
36+
if: github.ref == 'refs/head/master'
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Use Node.js 13.x
40+
uses: actions/setup-node@v1
41+
with:
42+
node-version: 13.x
43+
- run: npm install
44+
- run: npm run bootstrap
45+
- run: npm run build
46+
- name: Deploy playground to GitHub Pages
47+
uses: crazy-max/ghaction-github-pages@v1.4.0
48+
with:
49+
keep_history: true
50+
target-branch: gh-pages
51+
build_dir: packages/playground/build
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3254

3355
docs:
3456

0 commit comments

Comments
 (0)