github.com/igoogolx/clash@v1.19.8/.github/workflows/deploy-docs.yml (about)

     1  name: Deploy
     2  on:
     3    workflow_dispatch: {}
     4    push:
     5      branches:
     6        - master
     7  jobs:
     8    deploy:
     9      runs-on: ubuntu-latest
    10      strategy:
    11        matrix:
    12          node-version: [20]
    13      permissions:
    14        pages: write
    15        id-token: write
    16      environment:
    17        name: github-pages
    18        url: ${{ steps.deployment.outputs.page_url }}
    19      steps:
    20        - uses: actions/checkout@v3
    21          with:
    22            fetch-depth: 0
    23        - uses: pnpm/action-setup@v2
    24          with:
    25            version: latest
    26        - name: Use Node.js ${{ matrix.node-version }}
    27          uses: actions/setup-node@v3
    28          with:
    29            node-version: ${{ matrix.node-version }}
    30        - name: Install dependencies
    31          working-directory: docs
    32          run: pnpm install --frozen-lockfile=false
    33        - name: Build
    34          working-directory: docs
    35          run: pnpm run docs:build
    36        - uses: actions/configure-pages@v2
    37        - uses: actions/upload-pages-artifact@v1
    38          with:
    39            path: docs/.vitepress/dist
    40        - name: Deploy
    41          id: deployment
    42          uses: actions/deploy-pages@v2