Skip to content

Commit

Permalink
ci: deploy should be a step, not a job
Browse files Browse the repository at this point in the history
If previous steps fail, the deploy should not trigger.
  • Loading branch information
metonym committed Oct 28, 2023
1 parent b500b8d commit a448ce7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit a448ce7

Please sign in to comment.