diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7aa8fad8..21a397d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,9 @@ jobs: run: dotnet restore -p:PublishReadyToRun=true - name: Build - run: dotnet publish ./StabilityMatrix/StabilityMatrix.csproj -o out -c Release -r win-x64 -p:Version=${RELEASE_VERSION} -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true + run: dotnet publish ./StabilityMatrix/StabilityMatrix.csproj -o out -c Release -r win-x64 \ + -p:Version=${RELEASE_VERSION} -p:FileVersion=${RELEASE_VERSION} -p:AssemblyVersion=${RELEASE_VERSION} \ + -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true - name: Upload Artifact uses: actions/upload-artifact@v2 diff --git a/Jenkinsfile b/Jenkinsfile index 552bb4c5..902cf218 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ node("Windows") { } stage('Publish') { - bat "dotnet publish .\\StabilityMatrix\\StabilityMatrix.csproj -c Release -o out -r win-x64 -p:PublishSingleFile=true -p:Version=${version} --self-contained true" + bat "dotnet publish .\\StabilityMatrix\\StabilityMatrix.csproj -c Release -o out -r win-x64 -p:PublishSingleFile=true -p:Version=${version} -p:FileVersion=${version} -p:AssemblyVersion=${version} --self-contained true" } if (env.TAG_NAME) {