Skip to content

docs: 资源下载中心上线《跨境电商实用思维模型工具手册》PDF(65模型8章/2.2MB) + ResourceTable下载链接wi… #39

docs: 资源下载中心上线《跨境电商实用思维模型工具手册》PDF(65模型8章/2.2MB) + ResourceTable下载链接wi…

docs: 资源下载中心上线《跨境电商实用思维模型工具手册》PDF(65模型8章/2.2MB) + ResourceTable下载链接wi… #39

Workflow file for this run

# 跨境电商课程站 - 自动构建部署
# 推送到 main 分支时自动构建并部署到 GitHub Pages
name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
# 设置 GITHUB_TOKEN 权限
permissions:
contents: read
pages: write
id-token: write
# 只允许一个并发部署
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build with VitePress
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4