diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml new file mode 100644 index 000000000..8e209dacd --- /dev/null +++ b/.azure-pipelines/publish.yml @@ -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' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 191d8a387..5ef512838 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: