This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - docs | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: "docs" | |
| - name: Install pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@latest --activate | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build Site | |
| run: pnpm run build | |
| - name: Deploy for Github 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4.4.1 | |
| with: | |
| branch: static | |
| folder: docs/.vitepress/dist | |
| single-commit: true | |
| clean: true | |
| token: ${{ secrets.API_TOKEN }} |