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 : CI
2+ on :
3+ push :
4+ branches : [ dev ]
5+ paths :
6+ - " **/*.csproj"
7+ - " Directory.Build.props"
8+ - " .github/workflows/ci.yml"
9+
10+ jobs :
11+ pack-and-push :
12+ runs-on : ubuntu-latest
13+ permissions :
14+ contents : read
15+ packages : write
16+
17+ env :
18+ VERSION_SUFFIX : " "
19+
20+ steps :
21+ - uses : actions/checkout@v4
22+
23+ - name : Setup .NET
24+ uses : actions/setup-dotnet@v4
25+ with :
26+ dotnet-version : ' 9.0.304'
27+
28+ - name : Restore
29+ run : dotnet restore --configfile ./nuget.config
30+
31+ - name : Build
32+ run : dotnet build --no-restore --configuration Release
33+
34+ - name : Pack
35+ run : dotnet pack --no-build --configuration Release -o ./artifacts /p:VersionSuffix="${{ env.VERSION_SUFFIX }}"
Original file line number Diff line number Diff line change 11name : CI
22on :
33 push :
4- branches : [ dev ]
4+ branches : [ main ]
55 paths :
66 - " **/*.csproj"
77 - " Directory.Build.props"
5757 run : dotnet pack --no-build --configuration Release -o ./artifacts /p:VersionSuffix="${{ env.VERSION_SUFFIX }}"
5858
5959 - name : Push to GitHub Packages
60- run : dotnet nuget push "./artifacts/*.nupkg" --skip-duplicate --source "github" --api-key "${{ secrets.GITHUB_TOKEN }}" --configfile ./nuget.config
60+ run : dotnet nuget push "./artifacts/*.nupkg" --skip-duplicate --source "github" --api-key "${{ secrets.GITHUB_TOKEN }}" --configfile ./nuget.config
You can’t perform that action at this time.
0 commit comments