Skip to content

Commit 2c32d41

Browse files
committed
Set up CI with Azure Pipelines
[skip ci]
1 parent 592daea commit 2c32d41

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

azure-pipelines.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
# Node.js
3+
# Build a general Node.js project with npm.
4+
# Add steps that analyze code, save build artifacts, deploy, and more:
5+
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
6+
7+
trigger:
8+
branches:
9+
include:
10+
- main
11+
paths:
12+
include:
13+
- DocumentViewer/*
14+
exclude:
15+
- CodebugNotesAttachmentViewer/*
16+
17+
parameters:
18+
- name : 'ProjectName'
19+
type: string
20+
displayName: 'Name of the cdsproj under solutions folder'
21+
default: 'CodebugNotesAttachmentViewer.cdsproj'
22+
23+
24+
pool:
25+
vmImage: ubuntu-latest
26+
27+
steps:
28+
- task: NodeTool@0
29+
inputs:
30+
versionSpec: '24.x'
31+
displayName: 'Install Node.js'
32+
33+
- script: |
34+
npm install
35+
npm run refreshTypes
36+
npm run build
37+
displayName: 'npm install and build'
38+
39+
40+
- task: DotNetCoreCLI@2
41+
inputs:
42+
command: 'build'
43+
workingDirectory: 'CodebugNotesAttachmentViewer/'
44+
displayName: 'Building Solution'
45+
46+
- task: PublishBuildArtifacts@1
47+
displayName: 'Publishing Artifact'
48+
inputs:
49+
PathtoPublish: '$(System.DefaultWorkingDirectory)/CodebugNotesAttachmentViewer/bin/Debug/'
50+
ArtifactName: 'drop'
51+
publishLocation: 'Container'
52+
53+
- task: GitHubRelease@1
54+
inputs:
55+
gitHubConnection: 'github.com_ImranCodeBug'
56+
repositoryName: '$(Build.Repository.Name)'
57+
action: 'create'
58+
target: '$(Build.SourceVersion)'
59+
tagSource: 'userSpecifiedTag'
60+
tag: 'Codebug-$(Build.BuildNumber)'
61+
title: 'Release Main Branch'
62+
assets: '$(System.DefaultWorkingDirectory)/Solutions/bin/Debug/*.zip'
63+
changeLogCompareToRelease: 'lastFullRelease'
64+
changeLogType: 'commitBased'

0 commit comments

Comments
 (0)