Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: allow to trigger trace viewer deployment manually (#37956)

Yury Semikhatsky6aa42e67cf04
diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml
index b2f9cb2e7d..1bca7f6879 100644
--- a/.github/workflows/publish_release.yml
+++ b/.github/workflows/publish_release.yml
@@ -82,17 +82,22 @@ jobs:
private-key: ${{ secrets.PLAYWRIGHT_PRIVATE_KEY }}
repositories: trace.playwright.dev
- name: Deploy Canary
+ if: contains(github.ref, 'main') && github.event.schedule
run: bash utils/build/deploy-trace-viewer.sh --canary
- if: contains(github.ref, 'main')
env:
GH_SERVICE_ACCOUNT_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Deploy Beta
- run: bash utils/build/deploy-trace-viewer.sh --beta
if: contains(github.ref, 'release') && github.event_name == 'push'
+ run: bash utils/build/deploy-trace-viewer.sh --beta
env:
GH_SERVICE_ACCOUNT_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Deploy Stable
+ if: github.event_name == 'release' && github.event.action == 'published'
+ run: bash utils/build/deploy-trace-viewer.sh --stable
+ env:
+ GH_SERVICE_ACCOUNT_TOKEN: ${{ steps.app-token.outputs.token }}
+ - name: Deploy Stable (manually)
+ if: contains(github.ref, 'release') && github.event_name == 'workflow_dispatch'
run: bash utils/build/deploy-trace-viewer.sh --stable
- if: contains(github.ref, 'release') && github.event_name == 'release'
env:
GH_SERVICE_ACCOUNT_TOKEN: ${{ steps.app-token.outputs.token }}