File tree Expand file tree Collapse file tree 1 file changed +55
-55
lines changed Expand file tree Collapse file tree 1 file changed +55
-55
lines changed Original file line number Diff line number Diff line change 1- name : BuildAndPublish
2- on :
3- push :
4- branches :
5- - master
6- - develop
7- - feature/*
8- - hotfix/*
9- - release/*
10- pull_request :
11-
12- permissions :
13- id-token : write
14- contents : read
15- attestations : write
16-
17- jobs :
18- build :
19- name : Build
20- runs-on : ubuntu-latest
21- timeout-minutes : 5
22-
23- steps :
24- - uses : actions/checkout@v2
25- with :
26- fetch-depth : 0
27-
28- - name : Setup dotnet 3
29- uses : actions/setup-dotnet@v1
30- with :
31- dotnet-version : 3.1.x
32-
33- - name : Setup dotnet 8
34- uses : actions/setup-dotnet@v1
35- with :
36- dotnet-version : 8.x
37-
38- - name : build and publish
39- env :
40- COHERE_API_KEY : ${{ secrets.COHERE_API_KEY }}
41- ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY }}
42- shell : pwsh
43- run : |
44- ./build.ps1 -nugetPublish $true -nugetApiKey ${{ secrets.NUGET_API_KEY }}
45-
46- - name : Generate artifact attestation
47- uses : actions/attest-build-provenance@v1
48- with :
49- subject-path : ' artifacts/NuGet'
50-
51- - name : Upload Artifact
52- uses : actions/upload-artifact@v2
53- with :
54- name : nuget-packages
55- path : artifacts/NuGet
1+ name : BuildAndPublish
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - develop
7+ - feature/*
8+ - hotfix/*
9+ - release/*
10+ pull_request :
11+
12+ permissions :
13+ id-token : write
14+ contents : read
15+ attestations : write
16+
17+ jobs :
18+ build :
19+ name : Build
20+ runs-on : ubuntu-latest
21+ timeout-minutes : 5
22+
23+ steps :
24+ - uses : actions/checkout@v2
25+ with :
26+ fetch-depth : 0
27+
28+ - name : Setup dotnet 3
29+ uses : actions/setup-dotnet@v1
30+ with :
31+ dotnet-version : 3.1.x
32+
33+ - name : Setup dotnet 8
34+ uses : actions/setup-dotnet@v1
35+ with :
36+ dotnet-version : 8.x
37+
38+ - name : build and publish
39+ env :
40+ COHERE_API_KEY : ${{ secrets.COHERE_API_KEY }}
41+ ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY }}
42+ shell : pwsh
43+ run : |
44+ ./build.ps1 -nugetPublish $true -nugetApiKey ${{ secrets.NUGET_API_KEY }}
45+
46+ - name : Generate artifact attestation
47+ uses : actions/attest-build-provenance@v1
48+ with :
49+ subject-path : ' artifacts/NuGet'
50+
51+ - name : Upload Artifact
52+ uses : actions/upload-artifact@v3
53+ with :
54+ name : nuget-packages
55+ path : artifacts/NuGet
You can’t perform that action at this time.
0 commit comments