pulsar/script/vsts/release-branch-build.yml

74 lines
2.6 KiB
YAML
Raw Normal View History

trigger:
2019-06-12 12:27:03 +03:00
- master
- 1.* # VSTS only supports wildcards at the end
- electron-*
2021-06-02 16:03:50 +03:00
pr: none # no PR triggers
jobs:
# Import "GetReleaseVersion" job definition
- template: platforms/templates/get-release-version.yml
2020-09-16 16:44:04 +03:00
# Import lint definition
- template: lint.yml
2019-06-12 12:27:03 +03:00
# Import OS-specific build definitions.
- template: platforms/windows.yml
- template: platforms/macos.yml
- template: platforms/linux.yml
2019-06-12 12:27:03 +03:00
- job: UploadArtifacts
pool:
vmImage: 'ubuntu-latest'
2019-06-12 12:27:03 +03:00
dependsOn:
- GetReleaseVersion
2020-09-16 16:56:56 +03:00
- Lint
- Windows_tests
2019-06-12 12:27:03 +03:00
- Linux
- macOS_tests
2019-06-12 12:27:03 +03:00
variables:
ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ]
2021-05-27 19:05:52 +03:00
IsReleaseBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsReleaseBranch'] ]
IsSignedZipBranch: $[ dependencies.GetReleaseVersion.outputs['Version.IsSignedZipBranch'] ]
2019-06-12 12:27:03 +03:00
steps:
- template: platforms/templates/preparation.yml
2019-06-12 12:27:03 +03:00
- script: |
cd script/vsts
2020-08-28 18:18:21 +03:00
npm install
2019-06-12 12:27:03 +03:00
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
2020-08-28 18:18:21 +03:00
displayName: npm install
2019-06-12 12:27:03 +03:00
- task: DownloadBuildArtifacts@0
inputs:
itemPattern: '**'
downloadType: 'specific'
displayName: Download Release Artifacts
2019-06-12 12:27:03 +03:00
- script: |
node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom-staging"
2019-06-12 12:27:03 +03:00
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
ATOM_RELEASE_VERSION: $(ReleaseVersion)
ATOM_RELEASES_S3_KEY: $(ATOM_RELEASES_S3_KEY)
2021-06-02 16:07:15 +03:00
ATOM_RELEASES_AZURE_CONN_STRING: $(ATOM_RELEASES_AZURE_CONN_STRING)
2019-06-12 12:27:03 +03:00
ATOM_RELEASES_S3_SECRET: $(ATOM_RELEASES_S3_SECRET)
ATOM_RELEASES_S3_BUCKET: $(ATOM_RELEASES_S3_BUCKET)
PACKAGE_CLOUD_API_KEY: $(PACKAGE_CLOUD_API_KEY)
displayName: Create Draft Release
condition: and(succeeded(), eq(variables['Atom.AutoDraftRelease'], 'true'), eq(variables['IsReleaseBranch'], 'true'))
2019-06-12 12:27:03 +03:00
- script: |
2021-06-02 16:07:15 +03:00
node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --assets-path "$(System.ArtifactsDirectory)" --azure-blob-path "vsts-artifacts/$(Build.BuildId)/"
2019-06-12 12:27:03 +03:00
env:
ATOM_RELEASE_VERSION: $(ReleaseVersion)
ATOM_RELEASES_S3_KEY: $(ATOM_RELEASES_S3_KEY)
2021-06-02 16:07:15 +03:00
ATOM_RELEASES_AZURE_CONN_STRING: $(ATOM_RELEASES_AZURE_CONN_STRING)
2019-06-12 12:27:03 +03:00
ATOM_RELEASES_S3_SECRET: $(ATOM_RELEASES_S3_SECRET)
ATOM_RELEASES_S3_BUCKET: $(ATOM_RELEASES_S3_BUCKET)
displayName: Upload CI Artifacts to S3
condition: and(succeeded(), eq(variables['IsSignedZipBranch'], 'true'))