Skip to content

Commit

Permalink
fix: Github 发布
Browse files Browse the repository at this point in the history
  • Loading branch information
maotoumao committed Nov 11, 2023
1 parent 802954b commit c350498
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- master
workflow_dispatch:
jobs:
deploy:
buildAndUpdate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -18,7 +18,7 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
path: docs/.vitepress/dist
- name: Deploy
- name: 上传到 Github 的 gh-pages 分支
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
Expand All @@ -27,21 +27,30 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate knownHost
run: ssh-keyscan gitee.com > giteeKnownHosts
- name: Deploy
- name: 上传到 Gitee 的 gh-pages 分支
uses: s0/git-publish-subdir-action@develop
env:
REPO: [email protected]:musicfree/MusicFree.git
BRANCH: gh-pages
FOLDER: docs/.vitepress/dist
SSH_PRIVATE_KEY: ${{ secrets.GITEE_DEPLOY_PRIVATE_KEY }}
KNOWN_HOSTS_FILE: giteeKnownHosts
- name: Build Gitee Pages
- name: 创建 Gitee Page
uses: yanglbme/gitee-pages-action@main
with:
gitee-username: maotoumao
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: musicfree/MusicFree
branch: gh-pages

deploy:
runs-on: ubuntu-latest
needs: buildAndUpdate
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2


0 comments on commit c350498

Please sign in to comment.