Skip to content

Commit

Permalink
Update static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Because66666 authored Mar 9, 2025
1 parent fcdefe0 commit 1fb87bc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Deploy to GitHub Pages

permissions:
contents: write
on: [push] # 触发事件

jobs:
Expand All @@ -10,12 +11,12 @@ jobs:
uses: actions/checkout@v3
- name: corepack enable
run: corepack enable
- name: Install
- name: 安装依赖
run: npm install
- name: Build VuePress
- name: 开始构建
run: npm run docs:build
- name: Deploy to GitHub Pages
- name: 部署到服务器
uses: JamesIves/[email protected]
with:
branch: gh-pages # 部署分支
folder: .vuepress/dist # 部署文件夹
folder: src/.vuepress/dist

0 comments on commit 1fb87bc

Please sign in to comment.