docs: update servers #286
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
| name: Deploy Docusaurus Github pages | |
| on: | |
| push: | |
| branches: | |
| - site | |
| concurrency: | |
| group: deploy-site | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| with: | |
| persist-credentials: false | |
| - name: Set up pnpm | |
| run: corepack enable pnpm | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "lts/*" | |
| cache: "pnpm" | |
| - name: Install and Build | |
| run: | | |
| corepack enable | |
| pnpm install | |
| pnpm run build | |
| - name: CNAME | |
| run: | | |
| echo 'site.asyncraft.club' > ${{ github.workspace }}/build/CNAME | |
| - name: Deploy to Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ${{ github.workspace }}/build | |
| publish_branch: gh-pages | |
| destination_dir: . |