Publish workflow: stop before trying to publish PR

This commit is contained in:
TEC 2021-01-23 17:32:27 +08:00
parent 701f61f683
commit 5340aaa951
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ jobs:
cp ../config.html ../index.html
- name: Move files of interest to the publish subdir
if: ${{ github.event_name != 'pull_request'}}
run: |
cd ~/.config/doom
mkdir ./publish
@ -67,6 +68,7 @@ jobs:
mv ./misc/*.svg ./publish/misc/
- name: Deploy
if: ${{ github.event_name != 'pull_request'}}
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}