Skip to content

Commit

Permalink
Deploy only after successful tests
Browse files Browse the repository at this point in the history
  • Loading branch information
franekmagiera committed Feb 11, 2024
1 parent e01ab01 commit d39b3e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Deploy
on:
push:
workflow_run:
workflows: [Test]
branches: [main]
pull_request:
branches: main
types: [completed]

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

if: ${{ github.event.workflow_run.conclusion == 'success' }}

permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
Expand Down

0 comments on commit d39b3e7

Please sign in to comment.