Skip to content

Commit 5698a2f

Browse files
Merge pull request #12 from midnightmeshllc/feature-add-release-workflow
fix(env): swap to majorMinorPatch
2 parents ed042dc + 4986328 commit 5698a2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/nuget-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Update .csproj Version
3232
run: |
33-
sed -i "s/<Version>.*<\/Version>/<Version>${{ steps.gitversion.outputs.semVer }}<\/Version>/" Midnight.SOAP.SDK/Midnight.SOAP.SDK.csproj
33+
sed -i "s/<Version>.*<\/Version>/<Version>${{ steps.gitversion.outputs.majorMinorPatch }}<\/Version>/" Midnight.SOAP.SDK/Midnight.SOAP.SDK.csproj
3434
3535
- name: Restore dependencies
3636
run: dotnet restore Midnight.SOAP.SDK/Midnight.SOAP.SDK.csproj
@@ -39,7 +39,7 @@ jobs:
3939
run: dotnet build Midnight.SOAP.SDK/Midnight.SOAP.SDK.csproj --configuration Release --no-restore
4040

4141
- name: Pack NuGet package
42-
run: dotnet pack Midnight.SOAP.SDK/Midnight.SOAP.SDK.csproj --configuration Release --no-build --output ./nupkg /p:Version=${{ steps.gitversion.outputs.semVer }}
42+
run: dotnet pack Midnight.SOAP.SDK/Midnight.SOAP.SDK.csproj --configuration Release --no-build --output ./nupkg /p:Version=${{ steps.gitversion.outputs.majorMinorPatch }}
4343

4444
- name: Publish to NuGet
4545
run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
@@ -54,8 +54,8 @@ jobs:
5454
- name: Create GitHub Release
5555
uses: softprops/action-gh-release@v2
5656
with:
57-
tag_name: v${{ steps.gitversion.outputs.semVer }}
58-
name: Release v${{ steps.gitversion.outputs.semVer }}
57+
tag_name: v${{ steps.gitversion.outputs.majorMinorPatch }}
58+
name: Release v${{ steps.gitversion.outputs.majorMinorPatch }}
5959
body_path: ./CHANGELOG.md
6060
files: ./nupkg/*.nupkg
6161
env:

0 commit comments

Comments
 (0)