From 4a12f7e54a312465f703cc2ddd98c7b7665f69a7 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Sat, 8 May 2021 20:06:39 +0800 Subject: [PATCH] ci: add auto gh pages --- .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..e83043a --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,19 @@ +name: GitHub Pages + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npm install + - run: npm run docs:build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs-dist