Browse Source

Merge branch 'main' into model-browser-features

pull/55/head
Ionite 1 year ago committed by GitHub
parent
commit
253347ec18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      .github/workflows/release.yml
  2. 16
      Jenkinsfile

24
.github/workflows/release.yml

@ -32,7 +32,16 @@ jobs:
run: dotnet restore -p:PublishReadyToRun=true
- name: Build
run: dotnet publish ./StabilityMatrix/StabilityMatrix.csproj -o out -c Release -r win-x64 -p:Version=$env:RELEASE_VERSION -p:FileVersion=$env:RELEASE_VERSION -p:AssemblyVersion=$env:RELEASE_VERSION -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: >
dotnet publish ./StabilityMatrix/StabilityMatrix.csproj
-o out -c Release -r win-x64
-p:Version=$env:RELEASE_VERSION -p:FileVersion=$env:RELEASE_VERSION -p:AssemblyVersion=$env:RELEASE_VERSION
-p:PublishReadyToRun=true -p:PublishSingleFile=true
-p:SentryOrg=${{ secrets.SENTRY_ORG }} -p:SentryProject=${{ secrets.SENTRY_PROJECT }}
-p:SentryUploadSymbols=true -p:SentryUploadSources=true
--self-contained true
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
@ -46,3 +55,16 @@ jobs:
with:
name: StabilityMatrix
path: ./out/StabilityMatrix.exe
- name: Create Sentry release
if: ${{ env.MAKE_SENTRY_RELEASE == 'true' }}
uses: getsentry/action-release@v1
env:
MAKE_SENTRY_RELEASE: ${{ secrets.SENTRY_PROJECT != '' }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production
ignore_missing: true
version: StabilityMatrix@${{ env.GIT_TAG_NAME }}

16
Jenkinsfile vendored

@ -31,22 +31,6 @@ node("Windows") {
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) {
stage('Sentry Release') {
bat "pip install sentry-cli"
def sentry_org = "stability-matrix"
def sentry_project = "dotnet"
def sentry_environment = "production"
def sentry_release = "StabilityMatrix@${version}"
bat "sentry-cli releases new -p ${sentry_project} ${sentry_release}"
bat "sentry-cli releases set-commits ${sentry_release} --auto"
bat "sentry-cli releases files ${sentry_release} upload-sourcemaps ./out"
bat "sentry-cli releases finalize ${sentry_release}"
bat "sentry-cli releases deploys ${sentry_release} new -e ${sentry_environment}"
}
}
stage ('Archive Artifacts') {
archiveArtifacts artifacts: 'out/*.exe', followSymlinks: false
}

Loading…
Cancel
Save