File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Bss.Testing.Xunit
2+
3+ on :
4+ pull_request :
5+ branches : [main]
6+ paths :
7+ - ' xunit/**'
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Get code
15+ uses : actions/checkout@v4
16+
17+ - name : Setup .NET
18+ uses : actions/setup-dotnet@v4
19+ with :
20+ dotnet-version : " 8.0.x"
21+
22+ - name : Restore packages
23+ working-directory : ./xunit/src
24+ run : dotnet restore
25+
26+ - name : Build
27+ working-directory : ./xunit/src
28+ run : dotnet build ./Bss.Testing.Xunit.sln --no-restore
Original file line number Diff line number Diff line change 1+ name : Publish Bss.Testing.Xunit to Nuget
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Get code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup .NET
16+ uses : actions/setup-dotnet@v4
17+ with :
18+ dotnet-version : " 8.0.x"
19+
20+ - name : Restore packages
21+ working-directory : ./xunit/src
22+ run : dotnet restore
23+
24+ - name : Build & pack
25+ working-directory : ./xunit/src
26+ run : dotnet pack Bss.Testing.Xunit.sln --no-restore /p:PackageVersion=${{ github.event.release.tag_name }} /p:InformationalVersion=${{ github.sha }} -c Release -o out
27+
28+ - name : Publish
29+ working-directory : ./xunit/src/out
30+ run : dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}
31+ env :
32+ NUGET_TOKEN : ${{ secrets.NUGET_BSSFRAMEWORK }}
You can’t perform that action at this time.
0 commit comments