Skip to content

Commit

Permalink
🐛 e2e: publish on merge to main
Browse files Browse the repository at this point in the history
  • Loading branch information
jgalat committed Sep 25, 2023
1 parent 79ee6d2 commit e47e559
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review, closed]
types: [opened, reopened, synchronize, ready_for_review]
push:
branches: [main]
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-latest
if: ${{ contains('opened reopened synchronize ready_for_review', github.event.action) && !github.event.pull_request.merged }}
environment: Preview
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
Expand All @@ -25,7 +27,7 @@ jobs:

e2e:
needs: [check]
if: ${{ !github.event.pull_request.draft && github.event.action != 'closed' }}
if: ${{ !github.event.pull_request.draft }}
timeout-minutes: 30
runs-on: ubuntu-latest
environment: Test
Expand Down Expand Up @@ -66,7 +68,7 @@ jobs:

e2e-report:
needs: [e2e]
if: ${{ !cancelled() && !github.event.pull_request.draft && !github.event.pull_request.merged }}
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -87,7 +89,7 @@ jobs:

e2e-report-publish:
needs: [e2e-report]
if: ${{ always() && github.event.action == 'closed' && github.event.pull_request.merged }}
if: ${{ always() && needs.e2e-report.result == 'success' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
Expand Down

1 comment on commit e47e559

@vercel
Copy link

@vercel vercel bot commented on e47e559 Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app – ./

exactly-development.vercel.app
app.exact.ly
exactly.app
app.exactly.app
app-git-main.exactly.app

Please sign in to comment.