diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 09f7c2e..e0e908d 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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