diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 923146a..32dbc47 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -1,18 +1,21 @@ name: Deploy preview to vercel on: - workflow_run: - workflows: - - Checks - types: - - completed - branches-ignore: + push: + branches: - main + pull_request: + branches: + - main + types: + - opened + - synchronize + - reopened jobs: deploy: name: Deploy preview - if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'dot013/.www-new' }} + if: ${{ github.repository == 'dot013/.www-new' }} runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ac75bf7..5567c57 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,18 +1,14 @@ name: Deploy to vercel on: - workflow_run: - workflows: - - Checks - types: - - completed + push: branches: - main jobs: deploy: name: Deploy - if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'dot013/.www-new' }} + if: ${{ github.repository == 'dot013/.www-new' }} runs-on: ubuntu-latest steps: - name: Checkout