Skip to content

Commit

Permalink
Update auto-deploy.yml
Browse files Browse the repository at this point in the history
因为提交的pr是不可能有deploy权限的,所以只有在合并后才应该执行deploy。
  • Loading branch information
shzhxh authored Jan 20, 2023
1 parent 81b8d8c commit c4789cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

permissions:
contents: write
pull-requests: write

jobs:
build-and-deploy:
Expand All @@ -32,6 +31,7 @@ jobs:
hexo generate
- name: deploy
if: github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: public

0 comments on commit c4789cb

Please sign in to comment.