-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.14 KB
/
cicd.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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
# https://github.com/actions
name: CICD
on:
pull_request:
paths:
- 'src/**'
branches:
- 'main'
- 'release'
- 'develop'
- 'feature'
- 'hotfix'
- 'main/**'
- 'release/**'
- 'develop/**'
- 'feature/**'
- 'hotfix/**'
repository_dispatch:
types:
- builddispatch
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup-dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Diagnostic print enviroment vars
run: printenv
- name: Display dotnet version
run: dotnet --version
- name: Display powershell core version
run: pwsh --version
- name: Workflow Build/Deploy
run: .github/workflows/cicd.ps1 "${{ secrets.PAT }}" "${{ secrets.NUGET_PAT }}" "${{ secrets.NUGET_TEST_PAT }}"
shell: pwsh