From 996c295f4e40774244bfe92ead605e5a029f7c53 Mon Sep 17 00:00:00 2001 From: openoms Date: Mon, 1 Jul 2024 15:53:51 +0200 Subject: [PATCH] chore: deploy gh pages only if build exists --- .github/workflows/update-admin-api-reference.yml | 4 ++-- .github/workflows/update-public-api-reference.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-admin-api-reference.yml b/.github/workflows/update-admin-api-reference.yml index 4df9e49f..e5649d40 100644 --- a/.github/workflows/update-admin-api-reference.yml +++ b/.github/workflows/update-admin-api-reference.yml @@ -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 diff --git a/.github/workflows/update-public-api-reference.yml b/.github/workflows/update-public-api-reference.yml index 83aaf4c3..52132b20 100644 --- a/.github/workflows/update-public-api-reference.yml +++ b/.github/workflows/update-public-api-reference.yml @@ -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