Remove Azure Pipelines

10.8-maintenance
Mathias Rasmussen 2022-02-12 17:29:41 +01:00
parent eae9f7154a
commit 6919eb0e95
2 changed files with 0 additions and 187 deletions

View File

@ -41,7 +41,6 @@ jobs:
echo "::set-output name=notes::$(test -e "$1" && echo '${{ env.debugReleaseNotes }}' || echo '${{ env.releaseNotes }}')"
- name: Release
continue-on-error: true
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
with:
token: ${{ secrets.REPO_TOKEN }}

View File

@ -1,186 +0,0 @@
# Builds Betaflight Configurator on Windows, Android, Linux and OSX platforms.
#
# After building, artifacts are released to a seperate repository.
#
# Azure Pipelines requires the following extensions to be installed:
# - GitHub Tool: https://marketplace.visualstudio.com/items?itemName=marcelo-formentao.github-tools
#
# You'll also need to setup the follwing pipeline variables:
# "releaseNotes" - This is used to add the release notes in the windows job in the build stage so they can be published as part of the github release in the release stage
# "endpoint" - The name of the github endpoint link setup in AzDo - setup when linking AzDo and GitHub
# "owner" - The owner of the repository to release to e.g. betaflight
# "repoName" - The name of the repository to release to e.g. betaflight-configurator-nightly
variables:
owner: betaflight
repoName: betaflight-configurator-nightlies
debugReleaseNotes: This is a nightly build off the tip of 'master'. It may be unstable and result in corrupted configurations or data loss. **Use only for testing.**
releaseNotes: This is a release build. It does not contain the debug console.
linuxVmImage: 'ubuntu-20.04'
windowsVmImage: 'windows-2022'
parameters:
- name: releaseBuild
type: boolean
default: false
name: $(Date:yyyyMMdd).$(BuildID)
trigger:
batch: true
branches:
include:
- master
- "*-maintenance"
pr:
drafts: false
branches:
include:
- master
- "*-maintenance"
stages:
- stage: Build
jobs:
- job: 'Windows'
pool:
vmImage: '$(windowsVmImage)'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.18.2'
displayName: 'Install Node.js 14.18.2'
- script: yarn install --ignore-optional
displayName: 'Run yarn install'
- script: yarn test
displayName: 'Run yarn test'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '**/test_results.xml'
testRunTitle: 'Windows'
buildPlatform: 'Win64'
- script: yarn gulp release --win64
displayName: 'Run yarn release for win64'
condition: and(succeeded(), eq('${{ parameters.releaseBuild }}', true))
- script: yarn gulp debug-release --win64
displayName: 'Run yarn debug release for win64'
condition: and(succeeded(), eq('${{ parameters.releaseBuild }}', false))
- powershell: Set-Content -Path '$(System.DefaultWorkingDirectory)/release/log.txt' -Value $env:BUILD_SOURCEVERSIONMESSAGE
- task: PublishPipelineArtifact@1
displayName: 'Publish Windows release'
inputs:
targetPath: '$(System.DefaultWorkingDirectory)/release'
artifact: 'betaflight-configurator-windows'
- job: 'Android'
pool:
vmImage: '$(windowsVmImage)'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.18.2'
displayName: 'Install Node.js 14.18.2'
- script: yarn install --ignore-optional
displayName: 'Run yarn install'
- script: yarn gulp debug-release --android
displayName: 'Run yarn release for android'
- task: PublishPipelineArtifact@1
displayName: 'Publish Android release'
inputs:
targetPath: '$(System.DefaultWorkingDirectory)/release'
artifact: 'betaflight-configurator-android'
- job: 'MacOS'
pool:
vmImage: 'macos-10.15'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.18.2'
displayName: 'Install Node.js 14.18.2'
- script: npm install -g gulp
displayName: 'Install Gulp'
- script: yarn install
displayName: 'Run yarn install'
- script: yarn gulp release --osx64
displayName: 'Run yarn release for OSX64'
condition: and(succeeded(), eq('${{ parameters.releaseBuild }}', true))
- script: yarn gulp debug-release --osx64
displayName: 'Run yarn debug release for OSX64'
condition: and(succeeded(), eq('${{ parameters.releaseBuild }}', false))
- task: PublishPipelineArtifact@1
displayName: 'Publish MacOS release'
inputs:
artifactName: betaflight-configurator-macos
targetPath: '$(System.DefaultWorkingDirectory)/release'
- job: 'Linux'
pool:
vmImage: '$(linuxVmImage)'
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.18.2'
displayName: 'Install Node.js 14.18.2'
- script: yarn install --ignore-optional
displayName: 'Run yarn install'
- script: yarn gulp release --linux64
displayName: 'Run yarn release for linux64'
condition: and(succeeded(), eq('${{ parameters.releaseBuild }}', true))
- script: yarn gulp debug-release --linux64
displayName: 'Run yarn debug release for linux64'
condition: and(succeeded(), eq('${{ parameters.releaseBuild }}', false))
- script: cd $(System.DefaultWorkingDirectory)/release; find -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
displayName: 'Clean release folders'
- task: PublishPipelineArtifact@1
displayName: 'Publish Linux release'
inputs:
artifactName: betaflight-configurator-linux
targetPath: '$(System.DefaultWorkingDirectory)/release'
- stage: Release
jobs:
- job: Release
pool:
vmImage: '$(linuxVmImage)'
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
targetPath: '$(Pipeline.Workspace)'
- powershell: Write-Output ("##vso[task.setvariable variable=changelog;]$(gc $(Pipeline.Workspace)/betaflight-configurator-windows/log.txt)")
- powershell: Write-Output ("##vso[task.setvariable variable=releaseNotes;]$(debugReleaseNotes)")
condition: and(succeeded(), eq('${{ parameters.releaseBuild }}', false))
- task: GitHubReleasePublish@1
inputs:
githubEndpoint: '$(endpoint)'
manuallySetRepository: true
githubOwner: '$(owner)'
githubRepositoryName: '$(repoName)'
githubReleaseNotes: |+
$(releaseNotes)
$(changelog)
githubReleaseDraft: false
githubReleasePrerelease: false
githubIgnoreAssets: false
githubReleaseAsset: |
$(Pipeline.Workspace)/betaflight-configurator-android/**
$(Pipeline.Workspace)/betaflight-configurator-windows/**
$(Pipeline.Workspace)/betaflight-configurator-macos/**
$(Pipeline.Workspace)/betaflight-configurator-linux/**
githubReuseRelease: true
githubReuseDraftOnly: true
githubSkipDuplicatedAssets: false
githubEditRelease: false
githubDeleteEmptyTag: false