-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.45 KB
/
publish.yml
File metadata and controls
52 lines (44 loc) · 1.45 KB
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
name: Publish
on:
push:
branches: ["main"]
tags: ["*.*.*"]
paths-ignore: ["*.md"]
# We are using OpenID Connect to authenticate with Azure with secret.
# https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-azure
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: [idp]
environment: ci
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get nuget.org secret
id: get_nuget_feed_secret
uses: workleap/wl-reusable-workflows/retrieve-managed-secret@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: "nuget-org-workleap-api-key"
- uses: actions/setup-dotnet@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- run: ./Build.ps1
shell: pwsh
env:
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }}
NUGET_API_KEY: ${{ steps.get_nuget_feed_secret.outputs.secret }}
linearb:
needs: [publish]
uses: workleap/wl-reusable-workflows/.github/workflows/linearb-deployment.yml@main
with:
environment: 'release'
cortexEntityIdOrTag: service-wl-openapi-msbuild
secrets: inherit