Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #65 from microsoft/user/ashtat/UsePreReleaseTag
Browse files Browse the repository at this point in the history
Minor changes to pre release tag and conditionally sign/publish etc.
  • Loading branch information
ashtat committed Dec 10, 2021
2 parents d6fd493 + da18837 commit bc8b201
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Pipelines/Templates/DownloadPackage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ parameters:
default: 'pa-hrtfdsp'
- name: version
type: string
default: '2.1.571-prerelease'
default: '2.1.677-prerelease'
- name: destination
type: string
default: $(Build.SourcesDirectory)\Source\External\hrtfdsp
Expand Down
5 changes: 0 additions & 5 deletions Pipelines/Templates/Package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ jobs:
demands: Unity2020LTS
variables:
unityLocation: ''
${{ if eq(variables['Build.SourceBranchName'], variables['SigningBranch']) }}:
PackageVersion: $(ProductVersion)
${{ else }}:
PackageVersion: '$(ProductVersion)-prerelease.$(Build.SourceBranchName).$(Build.BuildNumber)'

steps:
- script: echo Downloading Pipeline Artifacts
- checkout: self
Expand Down
4 changes: 2 additions & 2 deletions Pipelines/Templates/Publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

jobs:
- deployment: Publish
condition: and(succeeded(), eq(variables['Build.SourceBranchName'], variables['SigningBranch']))
condition: and(succeeded(), or(eq(variables['PublishPackage'], 'true'), eq(variables['Build.SourceBranchName'], variables['SigningBranch'])))
continueOnError: false
displayName: Publish Packages to Feeds
pool:
Expand All @@ -25,5 +25,5 @@ jobs:
inputs:
workingFile: Source\Plugins\CrossPlatformPluginGenerator\Assets\Microsoft.SpatialAudio.Spatializer.Unity\.npmrc
customEndpoint: 'aipmr MixedReality-Unity-Packages'
- script: python tools\upm_package.py -s $(Pipeline.Workspace)\BuildArtifacts -o $(Pipeline.Workspace)\npm -v $(ProductVersion) -p
- script: python tools\upm_package.py -s $(Pipeline.Workspace)\BuildArtifacts -o $(Pipeline.Workspace)\npm -v $(PackageVersion) -p
displayName: Publish NPM Package to Public UPM Feed
6 changes: 5 additions & 1 deletion Pipelines/Templates/Variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ variables:
UnityVersion: $(Unity2020LTSVer)
ProductVersion.Patch: $[counter(variables['ProductMajorMinor'], 0)]
ProductVersion: $(ProductMajorMinor).$(ProductVersion.Patch)
NpmPackageName: 'com.microsoft.spatialaudio.spatializer.unity'
NpmPackageName: 'com.microsoft.spatialaudio.spatializer.unity'
${{ if eq(variables['Build.SourceBranchName'], variables['SigningBranch']) }}:
PackageVersion: $(ProductVersion)
${{ else }}:
PackageVersion: '$(ProductVersion)-prerelease'
2 changes: 1 addition & 1 deletion Tools/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
aipmr_azure_org = "https://dev.azure.com/aipmr/"
aipmr_package_feed = "SpatialAudio-packages"
hrtfdsp_package_name = "pa-hrtfdsp"
hrtfdsp_package_version = "2.1.571-prerelease"
hrtfdsp_package_version = "2.1.677-prerelease"

# Supported build platforms and configs
build_platform_arch_map = {
Expand Down

0 comments on commit bc8b201

Please sign in to comment.