Skip to content

Commit 1fcd7e9

Browse files
committed
+semver: minor updating nuget deploy
1 parent 10cd596 commit 1fcd7e9

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/master.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ jobs:
4141

4242
- name: Publish NuGet package
4343
run: |
44-
dotnet pack src/YourProject/YourProject.csproj --configuration Release --output ./nupkg /p:Version=${{ env.GitVersion_MajorMinorPatch }} /p:Version=${{ env.GitVersion_MajorMinorPatch }}
44+
dotnet pack CronScheduler.sln --configuration Release --no-build --output ./nupkg /p:Version=${{ env.GitVersion_MajorMinorPatch }} /p:Version=${{ env.GitVersion_MajorMinorPatch }}
4545
dotnet nuget push ./nupkg/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate

GitVersion.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ branches:
1717
regex: ^chore[/-]
1818
label: beta
1919
increment: None
20-
# Fallback configuration for any branch not matching the above patterns
21-
other:
22-
regex: .*
23-
label: ''
24-
increment: Patch
2520
pull-request:
2621
regex: ^(pull|pr)[/-]
2722
label: alpha
2823
increment: Inherit
24+
major-version-bump-message: '\+semver:\s?(breaking|major)'
25+
minor-version-bump-message: '\+semver:\s?(feature|minor)'
26+
patch-version-bump-message: '\+semver:\s?(fix|patch)'
2927
commit-message-incrementing: Enabled
30-
major-version-bump-message: '\\+semver:\\s?(breaking|major)'

0 commit comments

Comments
 (0)