diff --git a/.github/workflows/deploy-doc.yml b/.github/workflows/deploy-doc.yml new file mode 100644 index 0000000..a5dfc0c --- /dev/null +++ b/.github/workflows/deploy-doc.yml @@ -0,0 +1,37 @@ +name: GitHub Pages +on: + push: + branches: + - master + workflow_dispatch: {} + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Set node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install deps + run: pnpm install + + - name: Build + run: pnpm build + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: ./docs