Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devops: migrate publishing to Azure Pipelines for publishing #469

Merged
merged 5 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .azure-pipelines/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
pr: none

trigger:
tags:
include:
- '*'

resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
name: DevDivPlaywrightAzurePipelinesUbuntu2204
os: linux
sdl:
sourceAnalysisPool:
name: DevDivPlaywrightAzurePipelinesWindows2022
# The image must be windows-based due to restrictions of the SDL tools. See: https://aka.ms/AAo6v8e
# In the case of a windows build, this can be the same as the above pool image.
os: windows
stages:
- stage: Stage
jobs:
- job: HostJob
steps:
- task: UseNode@1
inputs:
version: '20.x'
displayName: 'Install Node.js'
- script: npm ci
displayName: 'Install dependencies'
- task: AzureCLI@2
displayName: 'Publishing with Managed Identity'
inputs:
azureSubscription: 'Playwright-VSMarketplacePublishing'
scriptType: "pscore"
scriptLocation: 'inlineScript'
inlineScript: |
$aadToken = az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv
npx vsce verify-pat --pat $aadToken ms-playwright
if ("$(Build.Reason)" -eq "Manual") {
npx vsce publish --pre-release --pat $aadToken
} else {
npx vsce publish --pat $aadToken
}
19 changes: 0 additions & 19 deletions .github/workflows/publish.yml

This file was deleted.

Loading