From a448ce7a10da50e4435a22c7f4cd39ff3dd5b0ed Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 28 Oct 2023 09:52:28 -0700 Subject: [PATCH] ci: deploy should be a step, not a job If previous steps fail, the deploy should not trigger. --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6baa91..f6450bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,11 +19,8 @@ jobs: yarn yarn test - deploy-docs: - if: github.ref == 'refs/heads/master' - runs-on: ubuntu-latest - steps: - name: Trigger deploy + if: github.ref == 'refs/heads/main' env: deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }} run: |