This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
75 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: 12.x | ||
|
||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '2.7' | ||
architecture: 'x64' | ||
|
||
- bash: | | ||
npm install | ||
npm run dist | ||
displayName: Build | ||
|
||
- bash: | | ||
BRANCH=$(Build.SourceBranch) | ||
TAG=${BRANCH:10} | ||
echo "##vso[task.setvariable variable=Name;isOutput=true]$TAG" | ||
displayName: Get Tag Name | ||
name: Tag | ||
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/') | ||
|
||
- task: GithubRelease@0 | ||
displayName: Create GitHub Release | ||
condition: startsWith(variables['Tag.Name'], 'v') | ||
inputs: | ||
gitHubConnection: GitHub Yue | ||
repositoryName: yue/wey | ||
action: Edit | ||
tagSource: auto | ||
tag: $(Tag.Name) | ||
title: Wey $(Tag.name) | ||
releaseNotesSource: input | ||
releaseNotes: (placeholder) | ||
assets: '*.zip' | ||
assetUploadMode: replace | ||
isDraft: true | ||
addChangelog: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
trigger: | ||
- refs/heads/* | ||
- refs/pull/*/merge | ||
- refs/tags/* | ||
|
||
jobs: | ||
- job: windows_build | ||
displayName: 'Build for Windows' | ||
pool: | ||
vmImage: 'VS2017-Win2016' | ||
steps: | ||
- template: azure-pipelines-template.yml | ||
|
||
- job: macos_build | ||
displayName: 'Build for macOS' | ||
pool: | ||
vmImage: 'macOS-10.14' | ||
steps: | ||
- template: azure-pipelines-template.yml | ||
|
||
- job: linux_build | ||
displayName: 'Build for Linux' | ||
pool: | ||
vmImage: 'ubuntu-18.04' | ||
steps: | ||
- script: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev | ||
displayName: Install dependencies | ||
- template: azure-pipelines-template.yml |