Skip to content

Commit 7ff86a8

Browse files
authored
chore: add publish-driver-release workflow (#5006)
1 parent 5c3f483 commit 7ff86a8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/publish_release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,26 @@ jobs:
2222
env:
2323
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2424

25+
publish-driver-release:
26+
name: "publish playwright driver to CDN"
27+
runs-on: ubuntu-20.04
28+
if: github.repository == 'microsoft/playwright'
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: actions/setup-node@v1
32+
with:
33+
node-version: 12.x
34+
registry-url: 'https://registry.npmjs.org'
35+
- uses: microsoft/playwright-github-action@v1
36+
- run: npm ci
37+
- run: npm run build
38+
- run: utils/build/build-playwright-driver.sh
39+
- run: utils/build/upload-playwright-driver.sh
40+
env:
41+
AZ_UPLOAD_FOLDER: driver
42+
AZ_ACCOUNT_KEY: ${{ secrets.AZ_ACCOUNT_KEY }}
43+
AZ_ACCOUNT_NAME: ${{ secrets.AZ_ACCOUNT_NAME }}
44+
2545
publish-docker-release:
2646
name: "publish to DockerHub"
2747
# We use `docker push --all-tags` to push all tags which is a newly addition to docker

0 commit comments

Comments
 (0)