mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
6264a70f70
With this patch: - one can trigger driver publish manually - driver will be published once a day for master branch - driver will be published for every commit of release branch
33 lines
889 B
YAML
33 lines
889 B
YAML
name: "devrelease:driver"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "10 0 * * *"
|
|
push:
|
|
branches:
|
|
- release-*
|
|
|
|
jobs:
|
|
publish-canary-driver:
|
|
name: "publish playwright driver to CDN"
|
|
runs-on: ubuntu-20.04
|
|
if: github.repository == 'microsoft/playwright'
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 12
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- run: npm i -g npm@7
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npx playwright install-deps
|
|
- run: node utils/build/update_canary_version.js --commit-timestamp
|
|
- run: utils/build/build-playwright-driver.sh
|
|
- run: utils/build/upload-playwright-driver.sh
|
|
env:
|
|
AZ_UPLOAD_FOLDER: driver/next
|
|
AZ_ACCOUNT_KEY: ${{ secrets.AZ_ACCOUNT_KEY }}
|
|
AZ_ACCOUNT_NAME: ${{ secrets.AZ_ACCOUNT_NAME }}
|