Skip to content

Commit a05ceb3

Browse files
committed
Semver issues
1 parent ca44579 commit a05ceb3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
id: pre
4646
shell: pwsh
4747
run: |
48-
if ($env:GITHUB_REF -eq "refs/heads/main") {
48+
if ($env:GITHUB_REF -eq "refs/heads/main" -or $env:GITHUB_REF -eq "refs/heads/master") {
4949
"type=" >> $env:GITHUB_OUTPUT
5050
}
5151
elseif ($env:GITHUB_REF -eq "refs/heads/develop") {
@@ -73,9 +73,11 @@ jobs:
7373
- name: Build
7474
shell: pwsh
7575
run: |
76+
$assemblyVersion = "${{ steps.version.outputs.version }}" -replace '-.*$', ''
7677
dotnet build `
7778
-c Release `
78-
-p:Version=${{ steps.version.outputs.version }}
79+
-p:Version=$assemblyVersion `
80+
-p:InformationalVersion=${{ steps.version.outputs.version }}
7981
8082
# -------------------------
8183
# Find packable projects

0 commit comments

Comments
 (0)