mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
0efa4a90cc
As per https://github.com/microsoft/playwright-internal/blob/main/INFRASTRUCTURE.md. Fixes https://github.com/microsoft/playwright/issues/27148.
30 lines
771 B
YAML
30 lines
771 B
YAML
name: "publish release - driver"
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
env:
|
|
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
|
|
|
jobs:
|
|
publish-driver-release:
|
|
name: "publish playwright driver to CDN"
|
|
runs-on: ubuntu-20.04
|
|
if: github.repository == 'microsoft/playwright'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npx playwright install-deps
|
|
- run: utils/build/build-playwright-driver.sh
|
|
- run: utils/build/upload-playwright-driver.sh
|
|
env:
|
|
AZ_UPLOAD_FOLDER: driver
|
|
AZ_ACCOUNT_KEY: ${{ secrets.AZ_ACCOUNT_KEY }}
|
|
AZ_ACCOUNT_NAME: ${{ secrets.AZ_ACCOUNT_NAME }}
|