Update release again

azure-pipelines 20190519.1
Joseph Donofry 6 years ago
parent c5a34dae8c
commit 9d2452ebf5
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
  1. 17
      .ci/azure-build.yml
  2. 2
      .ci/macos/deploy.sh

@ -3,6 +3,7 @@ steps:
- bash: mkdir -p ${ARTIFACT_STAGING_DIRECTORY} - bash: mkdir -p ${ARTIFACT_STAGING_DIRECTORY}
env: env:
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)) ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
name: createStaging
- bash: | - bash: |
export CXX=${CXX_COMPILER} export CXX=${CXX_COMPILER}
export CC=${C_COMPILER} export CC=${C_COMPILER}
@ -17,6 +18,8 @@ steps:
cp ./.ci/bintray-release.json . cp ./.ci/bintray-release.json .
env: env:
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)) ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
name: build
displayName: build
# - task: CopyFiles@2 # - task: CopyFiles@2
# inputs: # inputs:
# sourceFolder: $(Build.Repository.LocalPath) # Optional # sourceFolder: $(Build.Repository.LocalPath) # Optional
@ -28,15 +31,19 @@ steps:
# overWrite: true # Optional # overWrite: true # Optional
# flattenFolders: true # Optional # flattenFolders: true # Optional
# Create a variable for build success # Create a variable for build success
- bash: ls ${ARTIFACT_STAGING_DIRECTORY} - bash: |
echo ${ARTIFACT_STAGING_DIRECTORY}
ls ${ARTIFACT_STAGING_DIRECTORY}
env: env:
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)) ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
- pwsh: if( (Get-ChildItem $ENV:ARTIFACT_STAGING_DIRECTORY | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' } - pwsh: if( (Get-ChildItem $ENV:ARTIFACT_STAGING_DIRECTORY | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' }
env: env:
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)) ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
name: buildCheck
- task: GitHubRelease@0 - task: GitHubRelease@0
condition: eq(variables['buildSuccess'], 'true') condition: eq(variables['buildSuccess'], 'true')
continueOnError: true continueOnError: true
name: GitHubRelease
inputs: inputs:
gitHubConnection: nheko-reborn-pipeline gitHubConnection: nheko-reborn-pipeline
repositoryName: '$(Build.Repository.Name)' repositoryName: '$(Build.Repository.Name)'
@ -45,8 +52,8 @@ steps:
tagSource: 'manual' # Required when action == Create# Options: auto, manual tagSource: 'manual' # Required when action == Create# Options: auto, manual
tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual
#title: # Optional #title: # Optional
releaseNotesSource: 'file' # Optional. Options: file, input #releaseNotesSource: 'file' # Optional. Options: file, input
releaseNotesFile: CHANGELOG.md # Optional #releaseNotesFile: CHANGELOG.md # Optional
#releaseNotes: # Optional #releaseNotes: # Optional
#assets: '$(Build.ArtifactStagingDirectory)/*' # Optional #assets: '$(Build.ArtifactStagingDirectory)/*' # Optional
assetUploadMode: 'delete' # Optional. Options: delete, replace assetUploadMode: 'delete' # Optional. Options: delete, replace
@ -65,8 +72,8 @@ steps:
tagSource: 'manual' # Required when action == Create# Options: auto, manual tagSource: 'manual' # Required when action == Create# Options: auto, manual
tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual tag: $(Build.BuildNumber) # Required when action == Edit || Action == Delete || TagSource == Manual
#title: # Optional #title: # Optional
releaseNotesSource: 'file' # Optional. Options: file, input #releaseNotesSource: 'file' # Optional. Options: file, input
releaseNotesFile: CHANGELOG.md # Optional #releaseNotesFile: CHANGELOG.md # Optional
#releaseNotes: # Optional #releaseNotes: # Optional
#assets: '$(Build.ArtifactStagingDirectory)/*' # Optional #assets: '$(Build.ArtifactStagingDirectory)/*' # Optional
assetUploadMode: 'delete' # Optional. Options: delete, replace assetUploadMode: 'delete' # Optional. Options: delete, replace

@ -1,6 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
set -eux set -ex
# unused # unused
#TAG=$(git tag -l --points-at HEAD) #TAG=$(git tag -l --points-at HEAD)

Loading…
Cancel
Save