Skip to content

Commit d2c654b

Browse files
authored
push to nuget step (#22)
1 parent 9458516 commit d2c654b

File tree

2 files changed

+8
-54
lines changed

2 files changed

+8
-54
lines changed

.github/workflows/ci-tag-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,14 @@ jobs:
106106
with:
107107
name: configurationmigrationtool_xrmtoolbox
108108
path: '${{ env.xtbpublishlocation }}'
109+
- name: Setup .NET
110+
uses: actions/setup-dotnet@v3
111+
with:
112+
dotnet-version: 8.0.x
109113
- name: zip artifact # This would actually build your project, using zip for an example artifact
110114
run: |
111115
zip -r configurationmigrationtool${{ github.ref_name }}.zip configurationmigrationtool
116+
112117
- name: Create Release
113118
id: create_release
114119
uses: actions/create-release@v1
@@ -126,7 +131,9 @@ jobs:
126131
FILENAME=$(basename "$NUPKG_PATH")
127132
echo "nupkg_path=$NUPKG_PATH" >> "$GITHUB_OUTPUT"
128133
echo "filename=$FILENAME" >> "$GITHUB_OUTPUT" # Make it available to subsequent steps
129-
134+
- name: Push To NuGet Registry
135+
run: |
136+
dotnet nuget push ./xtb/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
130137
- name: Upload NuGet Package Release Asset
131138
id: upload-nuget-release-asset
132139
uses: actions/upload-release-asset@v1

.github/workflows/tag-with-gitversion.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)