chore: 更新google analytics #222
This file contains 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: Doc Page Publish | |
on: | |
push: | |
branches: [main-docs] | |
pull_request: | |
branches: [main-docs] | |
jobs: | |
publish: | |
name: Build and Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '20' | |
registry-url: https://registry.npmjs.org/ | |
- name: Install Dependencies | |
run: yarn install | |
- name: Generate Static Files | |
run: yarn generate | |
- name: Publish to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: docs | |
folder: .output/public | |
# 直接覆盖到根目录,不再使用docs作为发布目录了 | |
# target-folder: docs |