Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LJHG committed Dec 28, 2024
1 parent 3267975 commit 3232fcb
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,31 @@ jobs:
publish_site:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# Step 1: 检出当前代码库
- name: Checkout Repository
uses: actions/checkout@v4

- name: Debug Current Directory
run: |
pwd
ls -a
# Step 2: 调试当前目录(可选)
- name: Debug Current Directory
run: |
pwd
ls -a
- name: Install GitBook
run: npm install [email protected] --global
run: gitbook -V
run: gitbook install
# Step 3: 安装 GitBook CLI 并验证
- name: Install GitBook
run: |
npm install [email protected] --global
gitbook -V
gitbook install
- name: Configure Git
run: |
git config --global user.name "LJHG"
git config --global user.email "[email protected]"
# Step 4: 配置 Git 用户信息
- name: Configure Git
run: |
git config --global user.name "LJHG"
git config --global user.email "[email protected]"
- name: Push Sites
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: ./publish.sh
# Step 5: 推送到目标仓库
- name: Push Sites
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: ./publish.sh

0 comments on commit 3232fcb

Please sign in to comment.