microsoft/bcsamples-bingmaps.pte v6.0-github #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate NuGet Packages | |
# Controls when the workflow will run | |
on: | |
workflow_dispatch: | |
inputs: | |
nuGetServerUrl: | |
description: NuGet server URL (leave empty to use NUGETSERVERURL variable) | |
required: false | |
default: '' | |
nuGetToken: | |
description: NuGet auth token (leave empty to use NUGETTOKEN secret) | |
required: false | |
default: '' | |
apps: | |
description: Comma separated list of apps (leave empty to use APPS secret) | |
required: false | |
default: '' | |
symbolsOnly: | |
description: Generate Symbols Only NuGet packages | |
type: boolean | |
required: false | |
packageIdTemplate: | |
description: Package ID (leave empty to use the default package ID) | |
required: false | |
default: '{publisher}.{name}.{id}' | |
run-name: | |
description: Name of the run (leave empty to use the default name) | |
required: false | |
default: '' | |
run-name: ${{ github.event.inputs.run-name != '' && github.event.inputs.run-name || github.workflow }} | |
concurrency: | |
group: ${{ github.event.inputs.run-name != '' && github.event.inputs.run-name || github.workflow }} | |
cancel-in-progress: false | |
jobs: | |
GenerateNuGetPackages: | |
name: Generate NuGet Packages | |
runs-on: [ ubuntu-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Mask input | |
shell: pwsh | |
env: | |
secrets: ${{ toJson(secrets) }} | |
run: | | |
. (Join-Path $env:GITHUB_WORKSPACE "MaskInput.ps1") | |
- name: Generate NuGet Packages | |
shell: pwsh | |
env: | |
nuGetToken: ${{ github.event.inputs.nuGetToken != '' && github.event.inputs.nuGetToken || secrets.NUGETTOKEN }} | |
nuGetServerUrl: ${{ github.event.inputs.nuGetServerUrl != '' && github.event.inputs.nuGetServerUrl || vars.NUGETSERVERURL }} | |
apps: ${{ github.event.inputs.apps != '' && github.event.inputs.apps || secrets.APPS }} | |
symbolsOnly: ${{ (github.event.inputs.symbolsOnly == 'true') && 'true' || vars.SYMBOLSONLY }} | |
packageIdTemplate: ${{ github.event.inputs.packageIdTemplate != '' && github.event.inputs.packageIdTemplate || vars.PACKAGEIDTEMPLATE }} | |
run: | | |
. (Join-Path $env:GITHUB_WORKSPACE "GenerateNuGetPackages.ps1") |