Skip to content

Commit

Permalink
[bug]尝试修复自动部署
Browse files Browse the repository at this point in the history
  • Loading branch information
ForeverYolo committed Jun 4, 2024
1 parent 8611ec9 commit c603ad6
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main

jobs:
deploy:
build:
runs-on: ubuntu-latest
permissions:
contents: write # To push a branch
Expand Down Expand Up @@ -35,12 +35,15 @@ jobs:
git add .
git commit -m "Deploy $GITHUB_SHA to gh-pages"
git push --force --set-upstream origin gh-pages
- name: Deploy Web
uses: peaceiris/actions-gh-pages@v3
with:
PERSONAL_TOKEN: ${{ secrets.GUIDEBOOK_TOKEN }}
EXTERNAL_REPOSITORY: syswonder/hvisor-Book
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./
commit_message: ${{ github.event.head_commit.message }}
cname: hvisor.syswonder.org
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit c603ad6

Please sign in to comment.