From ccab5c2bba3abd1eee7929f37e395f51a1ed2b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E7=AB=B9?= Date: Sat, 14 Aug 2021 17:39:23 +0800 Subject: [PATCH] ci: add gh-pages --- .github/workflows/gh-pages.yml | 16 ++++++++++++++++ 1 file changed, 16 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 00000000..d057a886 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,16 @@ +name: github pages +on: + push: + branches: + - main # default branch +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - run: npx typedoc + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs \ No newline at end of file