From 131aec56c234cc55a7ad82b50697164d5d756f5d Mon Sep 17 00:00:00 2001 From: Fawad Ali Date: Tue, 28 May 2024 10:22:24 +0200 Subject: [PATCH] Configure deployment of docs on publish --- .github/workflows/deploy-docs.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..d9d1231 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,34 @@ +name: Deploy Docs + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + deploy-docs: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.x + + - name: Install pnpm + uses: pnpm/action-setup@v3 + with: + version: latest + run_install: true + + - name: Build docs + run: pnpm docs:build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/build