Skip to content

Commit ec37b37

Browse files
committed
Add nuget push step
1 parent f7b2993 commit ec37b37

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/dev-build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Dev build
1+
name: Dev release
22

33
on:
44
push:
@@ -24,7 +24,11 @@ jobs:
2424
run: dotnet test --no-restore --collect:"XPlat Code Coverage"
2525
- name: Set build label
2626
run: echo "DEVLABEL=$(date +'%Y%m%d')" >> $GITHUB_ENV
27+
- name: Build analyzers
28+
run: dotnet build src/analyzers/ -c Release --no-restore -o analyzers
2729
- name: Build source generator
28-
run: dotnet build src/generator/ -c Release --no-restore -o analyzers
30+
run: dotnet build src/source-generator/ -c Release --no-restore -o analyzers
2931
- name: Pack core library
30-
run: dotnet build src/lib -c Release --no-restore
32+
run: dotnet pack src/lib -c Release --no-restore -p:VersionSuffix=dev.${{ env.DEVLABEL }}.${{ github.run_number }} -o ./pack
33+
- name: Publish packages to NuGet
34+
run: dotnet nuget push ./pack/*[^.symbols].nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_ORG_PUSH_KEY }}

0 commit comments

Comments
 (0)