From 2cfe07da6e5cc073db0927de7f6b0ce60bbf1a5d Mon Sep 17 00:00:00 2001 From: cedoor Date: Thu, 20 Jan 2022 15:35:41 +0100 Subject: [PATCH] ci: add workflow to deploy docs --- .github/workflows/docs.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..bab8215 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,29 @@ +name: docs + +on: + push: + branches: + - main + +jobs: + gh-pages: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js 16.x + uses: actions/setup-node@v1 + with: + node-version: 16.x + + - run: yarn --frozen-lockfile + - run: yarn docs + + - name: Github Pages + uses: crazy-max/ghaction-github-pages@v2.5.0 + with: + build_dir: docs + jekyll: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}