Skip to content

Commit

Permalink
Creating pipeline parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
mijpeterson committed Jun 6, 2024
1 parent 85a5a6f commit 1e7b748
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release-azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# This pipeline will be triggered manually.
parameters:
- name: version
type: string
- name: prerelease
displayName: Prerelease?
type: boolean
default: true

variables:
- name: tags
value: "nonproduction"
Expand Down Expand Up @@ -38,7 +46,7 @@ extends:
inputs:
targetType: inline
script: |
echo $(version) | python ./bin/version.py
echo ${{ parameters.version }} | python ./bin/version.py
- stage: build
displayName: Build
Expand Down Expand Up @@ -98,10 +106,10 @@ extends:
inputs:
command: publish
projects: src/AzureAuth/AzureAuth.csproj
arguments: -p:Version=$(version) --configuration release --self-contained true --runtime $(runtime) --output dist/$(runtime)
arguments: -p:Version=${{ parameters.version }} --configuration release --self-contained true --runtime $(runtime) --output dist/$(runtime)

templateContext:
outputs:
- output: pipelineArtifact
path: dist/$(runtime)
artifact: azureauth-$(version)-$(runtime)
artifact: azureauth-${{ parameters.version }}-$(runtime)

0 comments on commit 1e7b748

Please sign in to comment.