Skip to content

Commit a81599f

Browse files
committed
chore: improve GitHub Pages deployment with safe build check
1 parent ca61eb1 commit a81599f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
npm run build
3030
3131
- name: Deploy to GitHub Pages
32+
if: success() && (hashFiles('out/index.html') != '')
3233
uses: peaceiris/actions-gh-pages@v3
3334
with:
3435
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)