From 7cf3a1d2e108e211591a29cc46aae3f6506d32ab Mon Sep 17 00:00:00 2001 From: "zhiwen.zhao" Date: Sat, 3 Jul 2021 16:01:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=BF=E7=94=A8=20github=20actions?= =?UTF-8?q?=20=E8=87=AA=E5=8A=A8=E8=A7=A6=E5=8F=91=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gh-pages.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..59666ac --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,19 @@ +name: github pages + +on: + push: + branches: + - master # default branch + +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - run: npm install + - run: npm run build:site + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./doc-site