Skip to content

Commit 303758b

Browse files
authored
Merge pull request #301 from w-ahmad/chore/add-dev-package-publishing
Update CI build to use pre-release versioning and push NuGet
2 parents 39e0255 + b188e78 commit 303758b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
msbuild /restore `
3434
/t:Build,Pack src/WinUI.TableView.csproj `
3535
/p:Configuration=Release `
36-
/p:Version=1.0.${{ github.run_number }}
36+
/p:Version=0.0.${{ github.run_number }}-dev
3737
3838
- name: Setup VSTest
3939
uses: darenm/Setup-VSTest@v1
@@ -55,3 +55,7 @@ jobs:
5555
with:
5656
name: NuGet Packages
5757
path: artifacts/NuGet/Release
58+
59+
- name: Push to NuGet
60+
run: |
61+
dotnet nuget push artifacts\NuGet\Release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)