Skip to content
Merged
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
19 changes: 5 additions & 14 deletions azure-pipelines-cd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
trigger: none
pr: none

parameters:
variables:
- name: releaseTag
displayName: GitHub Release Tag (e.g. v0.0.1)
type: string
default: ''
value: ''

# The `resources` specify the location and version of the 1ES PT.
resources:
Expand Down Expand Up @@ -48,30 +47,22 @@ extends:
- checkout: self
persistCredentials: "true"

- script: |
git config --global user.email webuisvc@microsoft.com
git config --global user.name "Microsoft WebUI Builds"
git remote set-url origin https://$(GH_TOKEN)@github.com/microsoft/webui.git
displayName: Configure git

# Download npm tarballs, crate archives, and NuGet packages from the
# GitHub release produced by the publish.yml GitHub Actions workflow.
- script: |
mkdir -p publish_artifacts_npm publish_artifacts_crates publish_artifacts_nuget
gh release download "${{ parameters.releaseTag }}" \
gh release download "$(releaseTag)" \
--repo microsoft/webui \
--pattern "*.tgz" \
--dir publish_artifacts_npm/
gh release download "${{ parameters.releaseTag }}" \
gh release download "$(releaseTag)" \
--repo microsoft/webui \
--pattern "*.crate" \
--dir publish_artifacts_crates/
gh release download "${{ parameters.releaseTag }}" \
gh release download "$(releaseTag)" \
--repo microsoft/webui \
--pattern "*.nupkg" \
--dir publish_artifacts_nuget/
displayName: Download release artifacts
env:
GH_TOKEN: $(GH_TOKEN)

- template: WebUI.Release.PipelineTemplate.yml@webuiPipelines # Template reference
Loading