Skip to content

Commit

Permalink
devops: Set up CI/CD with Azure Pipelines (#2054)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Sep 18, 2023
1 parent e576033 commit f1c44c1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 21 deletions.
35 changes: 35 additions & 0 deletions .azure-pipelines/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
trigger:
tags:
include:
- '*'

pool:
vmImage: ubuntu-latest

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
displayName: 'Use Python'

- script: |
python -m pip install --upgrade pip
pip install -r local-requirements.txt
pip install -e .
python setup.py bdist_wheel --all
displayName: 'Install & Build'

- task: EsrpRelease@4
inputs:
ConnectedServiceName: 'Playwright-ESRP'
Intent: 'PackageDistribution'
ContentType: 'PyPi'
ContentSource: 'Folder'
FolderLocation: './dist/'
WaitForReleaseCompletion: true
Owners: 'maxschmitt@microsoft.com'
Approvers: 'maxschmitt@microsoft.com'
ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
MainPublisher: 'Playwright'
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
displayName: 'ESRP Release to PIP'
21 changes: 0 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,6 @@ on:
release:
types: [published]
jobs:
deploy-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r local-requirements.txt
pip install -e .
python setup.py bdist_wheel --all
python -m playwright install-deps
- name: Publish package
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*

deploy-conda:
strategy:
matrix:
Expand Down

0 comments on commit f1c44c1

Please sign in to comment.