build: add github pages deploy action (#8582)

This commit is contained in:
neverland
2021-04-20 19:56:32 +08:00
committed by GitHub
parent e50f6f1c19
commit 38f02606ad
+20
View File
@@ -0,0 +1,20 @@
name: Build and Deploy Site
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Install and Build
run: |
yarn
yarn release:site
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4
with:
branch: gh-pages
folder: site
target-folder: v3