Browse Source

Add AssemblyVersion and FileVersion properties to build CIs

pull/5/head
Ionite 1 year ago
parent
commit
4800741fcc
No known key found for this signature in database
  1. 4
      .github/workflows/release.yml
  2. 2
      Jenkinsfile

4
.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

2
Jenkinsfile vendored

@ -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) {

Loading…
Cancel
Save