From a6231d4b99c317ae6c694f05a3cc414b2c3a2a5d Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 29 Oct 2023 10:21:51 -0700 Subject: [PATCH] ci: deploy should be a step, not a job --- .github/workflows/ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3c55ada..66dac057 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,3 @@ -name: CI - on: pull_request: push: @@ -9,8 +7,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@v4 - uses: actions/cache@v3 id: yarn-cache with: @@ -24,12 +21,9 @@ jobs: yarn test:types yarn lint - deploy-docs: - if: github.ref == 'refs/heads/master' - runs-on: ubuntu-latest - steps: - name: Trigger deploy + if: github.ref == 'refs/heads/master' env: deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }} run: | - curl -X GET "$deploy_url" + curl "$deploy_url"