Skip to content

feat: 添加 Google Analytics #10

feat: 添加 Google Analytics

feat: 添加 Google Analytics #10

Workflow file for this run

name: Build and deploy
on:
push:
paths:
- ".github/**"
- "src/**"
- "package-lock.json"
- "package.json"
permissions:
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
name: Build and deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: current
- name: Build
run: |
npm i
npm run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "src/.vitepress/dist/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4