Skip to content

Commit b188e78

Browse files
authored
Update CI build to use pre-release versioning and push NuGet
Change versioning scheme to use a pre-release version and add a step to push NuGet packages.
1 parent 39e0255 commit b188e78

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.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)