From cca58657b9f1f2ef2738a1db74d95e4151780b83 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Mon, 20 Nov 2023 13:01:35 +0100 Subject: [PATCH] Deploy docs only from main branch --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index acd9092151..1f393c59c6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -47,6 +47,7 @@ jobs: path: ./target/doc deploy-docs: + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: pages: write # to deploy to Pages @@ -57,6 +58,5 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - name: Deploy Docs - if: github.ref == 'refs/heads/main' id: deployment uses: actions/deploy-pages@v2 \ No newline at end of file