From 3170dd8d621837835027626f9b05f26bd6904750 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Thu, 3 Mar 2022 03:58:01 -0800 Subject: [PATCH] chore(CI): Don't try to deploy from forks Gitstats and doxygen deploys require deploy keys to update qTox's website. Don't try to do this from forks, since it will always fail. --- .github/workflows/build-test-deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-deploy.yaml b/.github/workflows/build-test-deploy.yaml index e65961622..80e887e8a 100644 --- a/.github/workflows/build-test-deploy.yaml +++ b/.github/workflows/build-test-deploy.yaml @@ -505,7 +505,7 @@ jobs: - name: Run run: ./.ci-scripts/build-docs.sh - name: Deploy - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' && github.owner == 'qTox' env: access_key: ${{ secrets.DOXYGEN_DEPLOY_KEY }} run: ./.ci-scripts/deploy-docs.sh @@ -527,7 +527,7 @@ jobs: - name: Run run: ./.ci-scripts/build-gitstats.sh - name: Deploy - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' && github.owner == 'qTox' env: access_key: ${{ secrets.GITSTATS_DEPLOY_KEY }} run: ./.ci-scripts/deploy-gitstats.sh