File tree Expand file tree Collapse file tree 3 files changed +34
-33
lines changed
Expand file tree Collapse file tree 3 files changed +34
-33
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : πΏ CI Branch
22
33on :
44 push :
1313
1414jobs :
1515 build-branch :
16+ name : π Build Branch
1617 runs-on : ubuntu-20.04
1718 steps :
18- - name : Checkout
19- uses : actions/checkout@v2
20- - name : Setup .NET Core
21- uses : actions/setup-dotnet@v1
22- - name : Restore
19+ - name : π Checkout
20+ uses : actions/checkout@master
21+ - name : π Setup .NET Core
22+ uses : actions/setup-dotnet@master
23+ - name : β Restore
2324 run : dotnet restore
24- - name : Build
25+ - name : π Build
2526 run : dotnet build --no-restore -c Release
Original file line number Diff line number Diff line change 1- name : CI
1+ name : πΏ CI Master
22
33on :
44 push :
88 - ' !refs/tags/*'
99
1010jobs :
11- build-publish-dev :
11+ build-dev :
12+ name : π Build Dev
1213 runs-on : ubuntu-20.04
1314 steps :
14- - name : Checkout
15- uses : actions/checkout@v2
16- - name : Setup .NET Core
17- uses : actions/setup-dotnet@v1
18- - name : Restore
15+ - name : π Checkout
16+ uses : actions/checkout@master
17+ - name : π Setup .NET Core
18+ uses : actions/setup-dotnet@master
19+ - name : β Restore
1920 run : dotnet restore
20- - name : Build
21+ - name : π Build
2122 run : dotnet build --no-restore -c Release
22- - name : Pack artifacts
23+ - name : π Pack artifacts
2324 run : dotnet pack src/* --no-build -c Release --version-suffix dev-$(date +%s) -o artifacts/
24- - name : Publish artifacts
25+ - name : π Publish artifacts
2526 uses : actions/upload-artifact@v2
2627 with :
2728 name : nupkg
2829 path : artifacts/*
29- - name : Publish to GitHub
30- run : |
31- dotnet tool install -g gpr --no-cache -v q
32- gpr push "artifacts/*.nupkg" -k ${{ secrets.GH_DEPLOY_KEY }}
30+ - name : π¦ Publish to GitHub
31+ run : dotnet nuget push "artifacts/*.nupkg" -s https://nuget.pkg.github.com/PrometheusClientNet/index.json -k ${{ secrets.GH_DEPLOY_KEY }} --skip-duplicate
Original file line number Diff line number Diff line change 1- name : " CI "
1+ name : πΏ CI Prod
22
33on :
44 push :
55 tags :
66 - ' v*'
77
88jobs :
9- build :
9+ build-prod :
10+ name : π Build Prod
1011 runs-on : ubuntu-20.04
1112 steps :
12- - name : Checkout
13- uses : actions/checkout@v2
14- - name : Setup .NET Core
15- uses : actions/setup-dotnet@v1
16- - name : Restore
13+ - name : π Checkout
14+ uses : actions/checkout@master
15+ - name : π Setup .NET Core
16+ uses : actions/setup-dotnet@master
17+ - name : β Restore
1718 run : dotnet restore
18- - name : Build
19- run : dotnet build -c Release
20- - name : Pack artifacts
19+ - name : π Build
20+ run : dotnet build --no-restore - c Release
21+ - name : π Pack artifacts
2122 run : dotnet pack src/* -c Release --no-build -o artifacts/
22- - name : Publish artifacts
23+ - name : π Publish artifacts
2324 uses : actions/upload-artifact@v2
2425 with :
2526 name : nupkg
2627 path : artifacts/*
27- - name : Publish to NuGet
28+ - name : π¦ Publish to NuGet
2829 run : dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.NUGET_DEPLOY_KEY }} --source https://api.nuget.org/v3/index.json
You canβt perform that action at this time.
0 commit comments