Skip to content

Commit f1c44c1

Browse files
authored
devops: Set up CI/CD with Azure Pipelines (microsoft#2054)
1 parent e576033 commit f1c44c1

File tree

2 files changed

+35
-21
lines changed

2 files changed

+35
-21
lines changed

.azure-pipelines/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
trigger:
2+
tags:
3+
include:
4+
- '*'
5+
6+
pool:
7+
vmImage: ubuntu-latest
8+
9+
steps:
10+
- task: UsePythonVersion@0
11+
inputs:
12+
versionSpec: '3.8'
13+
displayName: 'Use Python'
14+
15+
- script: |
16+
python -m pip install --upgrade pip
17+
pip install -r local-requirements.txt
18+
pip install -e .
19+
python setup.py bdist_wheel --all
20+
displayName: 'Install & Build'
21+
22+
- task: EsrpRelease@4
23+
inputs:
24+
ConnectedServiceName: 'Playwright-ESRP'
25+
Intent: 'PackageDistribution'
26+
ContentType: 'PyPi'
27+
ContentSource: 'Folder'
28+
FolderLocation: './dist/'
29+
WaitForReleaseCompletion: true
30+
Owners: 'maxschmitt@microsoft.com'
31+
Approvers: 'maxschmitt@microsoft.com'
32+
ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
33+
MainPublisher: 'Playwright'
34+
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
35+
displayName: 'ESRP Release to PIP'

.github/workflows/publish.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,6 @@ on:
33
release:
44
types: [published]
55
jobs:
6-
deploy-pypi:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v3
10-
- name: Set up Python
11-
uses: actions/setup-python@v4
12-
with:
13-
python-version: 3.9
14-
- name: Install dependencies
15-
run: |
16-
python -m pip install --upgrade pip
17-
pip install -r local-requirements.txt
18-
pip install -e .
19-
python setup.py bdist_wheel --all
20-
python -m playwright install-deps
21-
- name: Publish package
22-
env:
23-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
24-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
25-
run: twine upload dist/*
26-
276
deploy-conda:
287
strategy:
298
matrix:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy