From 7e90358c897ae2519ecc4fc3f3c2d082ceab5919 Mon Sep 17 00:00:00 2001 From: rzyu45 Date: Tue, 4 Jun 2024 17:03:54 +0800 Subject: [PATCH 1/3] To deploy docs only in the default repo --- .github/workflows/doc-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc-deploy.yml b/.github/workflows/doc-deploy.yml index ee0774a..9b87380 100644 --- a/.github/workflows/doc-deploy.yml +++ b/.github/workflows/doc-deploy.yml @@ -11,8 +11,8 @@ on: jobs: build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') - runs-on: ubuntu-latest + if: github.repository == 'smallbunnies/Solverz' &&(github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')) + runs-on: ubuntu-latest) name: Build and Deploy Job steps: - uses: actions/checkout@v3 From 8041b39e2754d2ede4890c0f82e71b8ba27a60e3 Mon Sep 17 00:00:00 2001 From: rzyu45 Date: Tue, 4 Jun 2024 17:03:54 +0800 Subject: [PATCH 2/3] To deploy docs only in the default repo --- .github/workflows/doc-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc-deploy.yml b/.github/workflows/doc-deploy.yml index e4b5601..b61fee9 100644 --- a/.github/workflows/doc-deploy.yml +++ b/.github/workflows/doc-deploy.yml @@ -11,8 +11,8 @@ on: jobs: build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') - runs-on: ubuntu-latest + if: github.repository == 'smallbunnies/Solverz' &&(github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')) + runs-on: ubuntu-latest) name: Build and Deploy Job steps: - uses: actions/checkout@v3 From 32f58f3d620bec388a7bd0e87307fb5e83dd93ae Mon Sep 17 00:00:00 2001 From: Ruizhi Yu Date: Wed, 31 Jul 2024 12:29:44 +0800 Subject: [PATCH 3/3] Update doc-deploy.yml --- .github/workflows/doc-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-deploy.yml b/.github/workflows/doc-deploy.yml index b61fee9..5b0d77f 100644 --- a/.github/workflows/doc-deploy.yml +++ b/.github/workflows/doc-deploy.yml @@ -12,7 +12,7 @@ on: jobs: build_and_deploy_job: if: github.repository == 'smallbunnies/Solverz' &&(github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')) - runs-on: ubuntu-latest) + runs-on: ubuntu-latest name: Build and Deploy Job steps: - uses: actions/checkout@v3