Skip to content

Commit

Permalink
Feat: 通过 github pages 提供服务监控页
Browse files Browse the repository at this point in the history
  • Loading branch information
WendaoLee committed Oct 1, 2024
1 parent cdd6f1f commit 37ddf1b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,9 @@ jobs:
continue-on-error: true

# Step 5: Commit and push the contents of ./output to the gh-pages branch
- name: Deploy to gh-pages
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git checkout -B gh-pages
cp -r ./output/* .
git add .
git commit -m "Deploy updated output"
git push origin gh-pages --force
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out # 静态导出文件夹路径
force_orphan: true # 确保 gh-pages 分支不会出现冲突

0 comments on commit 37ddf1b

Please sign in to comment.