Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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: 4 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,16 @@ jobs:
with:
fetch-depth: 0

- name: Get gsoft-nuget-feed-ado-pat secret
id: get_gsoft_nuget_feed_ado_pat_secret
uses: workleap/wl-reusable-workflows/retrieve-managed-secret@main
- name: Authenticate to Azure Artifacts
uses: workleap/wl-reusable-workflows/az-artifact-authenticate@main
with:
azure-client-id: ${{ vars.AZURE_CLIENT_ID }}
azure-tenant-id: ${{ vars.AZURE_TENANT_ID }}
azure-subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
keyvault-name: ${{ vars.IDP_CICD_KEYVAULT_NAME }}
secret-name: "gsoft-nuget-feed-ado-pat"

- uses: actions/setup-dotnet@v4
with:
source-url: ${{ vars.GSOFTDEV_NUGET_SOURCE }}
env:
NUGET_AUTH_TOKEN: ${{ steps.get_gsoft_nuget_feed_ado_pat_secret.outputs.secret }}
feed-url: ${{ vars.GSOFTDEV_NUGET_SOURCE }}
variables: ${{ toJSON(vars) }}

- run: ./Build.ps1
shell: pwsh
env:
NUGET_SOURCE: ${{ vars.GSOFTDEV_NUGET_SOURCE }}
NUGET_API_KEY: ${{ steps.get_gsoft_nuget_feed_ado_pat_secret.outputs.secret }}

linearb:
needs: [ci]
Expand Down
3 changes: 3 additions & 0 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ Process {
if (($null -ne $env:NUGET_SOURCE) -and ($null -ne $env:NUGET_API_KEY) -and ($IsLinux)) {
Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY --skip-duplicate }
}
elseif (($null -ne $env:NUGET_SOURCE ) -and ($null -ne $env:VSS_NUGET_ACCESSTOKEN)) {
Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k "az-api-key" --skip-duplicate }
}
}
finally {
Pop-Location
Expand Down
Loading