Skip to content

Commit

Permalink
chore: deploy gh pages only if build exists
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Jul 1, 2024
1 parent 71154eb commit 996c295
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-admin-api-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ jobs:
nix-shell -p yarn --run "yarn build"
- name: Deploy to GitHub Pages
if: env.CURRENT_HASH != env.WEEK_OLD_HASH
if: env.CURRENT_HASH != env.WEEK_OLD_HASH && ls ./dev.blink.sv/build
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_dir: ./dev.blink.sv/build
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
4 changes: 2 additions & 2 deletions .github/workflows/update-public-api-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ jobs:
nix-shell -p yarn --run "yarn build"
- name: Deploy to GitHub Pages
if: env.CURRENT_HASH != env.WEEK_OLD_HASH
if: env.CURRENT_HASH != env.WEEK_OLD_HASH && ls ./dev.blink.sv/build
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_dir: ./dev.blink.sv/build
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com

0 comments on commit 996c295

Please sign in to comment.