-
Notifications
You must be signed in to change notification settings - Fork 15
61 lines (52 loc) · 1.56 KB
/
ci.yml
File metadata and controls
61 lines (52 loc) · 1.56 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
53
54
55
56
57
58
59
60
61
name: CI
on:
pull_request:
branches: [main]
paths-ignore: ["*.md"]
push:
branches:
- "renovate/**"
# Prevent duplicate runs if Renovate falls back to creating a PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
# 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:
main:
# We need windows to use nuget
runs-on: [idp]
environment: ci
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Azure Artifacts Authenticate
uses: workleap/wl-reusable-workflows/az-artifact-authenticate@main
with:
feed-url: ${{ vars.GSOFTDEV_NUGET_SOURCE }}
variables: ${{ toJSON(vars) }}
- run: ./Build.ps1
shell: pwsh
env:
NUGET_SOURCE: ${{ vars.GSOFTDEV_NUGET_SOURCE }}
- name: Upload NuGet package
uses: actions/upload-artifact@v7
if: always()
with:
name: nuget-package
path: .output/**/*
include-hidden-files: true
if-no-files-found: error
linearb:
needs: [main]
uses: workleap/wl-reusable-workflows/.github/workflows/linearb-deployment.yml@main
with:
environment: development
cortexEntityIdOrTag: service-wl-dotnet-codingstandards
permissions:
id-token: write
contents: read