-
Notifications
You must be signed in to change notification settings - Fork 16
62 lines (56 loc) · 2.26 KB
/
generateNuGet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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")