Skip to content

Commit

Permalink
ci: add release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
KagamiChan committed Feb 17, 2021
1 parent 47febe1 commit f504e04
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 9 deletions.
46 changes: 46 additions & 0 deletions .azure/azure-pipelines.release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
variables:
npm_config_cache: $(Pipeline.Workspace)/.npm
THIS_MONTH: $[format('{0:yyyyMM}', pipeline.startTime)]

trigger:
tags:
include:
- '*'
branches:
exclude:
- '*'

jobs:
- job: Linux
strategy:
matrix:
full:
buildType: full
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y libopenjp2-tools rpm libarchive-tools snapcraft
displayName: 'Linux system dependencies'
- template: shared-steps.yml

- job: macOS
strategy:
matrix:
full:
buildType: full
pool:
vmImage: 'macOS-latest'
steps:
- template: shared-steps.yml

- job: Windows
strategy:
matrix:
full:
buildType: full
pool:
vmImage: 'windows-latest'
steps:
- template: shared-steps.yml
10 changes: 1 addition & 9 deletions .azure/shared-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ steps:
npm ci
displayName: 'npm install'

- script: |
npm run lint
displayName: 'npm lint'

- script: |
npm run build:$(buildType)
displayName: 'npm build'

- script: |
npm test
displayName: 'npm test'
displayName: npm build $(buildType)

- task: CopyFiles@2
inputs:
Expand Down

0 comments on commit f504e04

Please sign in to comment.