File tree 3 files changed +49
-36
lines changed
3 files changed +49
-36
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ inputs:
17
17
description : ' Token for Azure DevOps'
18
18
required : true
19
19
20
+ outputs :
21
+ vsix :
22
+ description : ' Path to the generated VSIX file'
23
+
20
24
runs :
21
25
using : ' composite'
22
26
steps :
Original file line number Diff line number Diff line change
1
+ name : prerelease
2
+ on :
3
+ release :
4
+ types : [ prereleased ]
5
+
6
+ defaults :
7
+ run :
8
+ shell : pwsh
9
+
10
+ jobs :
11
+ prerelease :
12
+ runs-on : ${{ matrix.os }}
13
+ strategy :
14
+ matrix :
15
+ os : [ ubuntu-latest ]
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+ token : ${{ secrets.PUSH_GITHUB_TOKEN }}
21
+
22
+ - run : |
23
+ npm install
24
+ npm run build:tools
25
+ npm run build:agent:github
26
+ npm run build:agent:azure
27
+
28
+ name: Build code
29
+ - name : Install GitVersion
30
+ uses : ./gitversion/setup
31
+ with :
32
+ versionSpec : ' 6.0.x'
33
+ - name : Use GitVersion
34
+ id : gitversion # step id used as reference for output values
35
+ uses : ./gitversion/execute
36
+ - name : Publish To Azure Marketplace
37
+ id : publish-azure
38
+ uses : ./.github/actions/publish-azure
39
+ with :
40
+ mode : ' test'
41
+ major : ${{ steps.gitversion.outputs.major }}
42
+ minor : ${{ steps.gitversion.outputs.minor }}
43
+ patch : ${{ steps.gitversion.outputs.patch }}
44
+ token : ${{ secrets.TFX_TOKEN }}
Original file line number Diff line number Diff line change 1
1
name : release
2
2
on :
3
3
release :
4
- types : [ prereleased, released ]
4
+ types : [ released ]
5
5
6
6
defaults :
7
7
run :
8
8
shell : pwsh
9
9
10
10
jobs :
11
- prerelease :
12
- if : github.event.release.prerelease == true
13
- runs-on : ${{ matrix.os }}
14
- strategy :
15
- matrix :
16
- os : [ ubuntu-latest ]
17
- steps :
18
- - uses : actions/checkout@v4
19
- with :
20
- fetch-depth : 0
21
- token : ${{ secrets.PUSH_GITHUB_TOKEN }}
22
-
23
- - run : |
24
- npm install
25
- npm run build:tools
26
- npm run build:agent:github
27
- npm run build:agent:azure
28
-
29
- name: Build code
30
- - name : Install GitVersion
31
- uses : ./gitversion/setup
32
- with :
33
- versionSpec : ' 6.0.x'
34
- - name : Use GitVersion
35
- id : gitversion # step id used as reference for output values
36
- uses : ./gitversion/execute
37
- - name : Publish To Azure Marketplace
38
- id : publish-azure
39
- uses : ./.github/actions/publish-azure
40
- with :
41
- mode : ' test'
42
- major : ${{ steps.gitversion.outputs.major }}
43
- minor : ${{ steps.gitversion.outputs.minor }}
44
- patch : ${{ steps.gitversion.outputs.patch }}
45
- token : ${{ secrets.TFX_TOKEN }}
46
11
release :
47
12
if : github.event.release.prerelease == false
48
13
runs-on : ${{ matrix.os }}
You can’t perform that action at this time.
0 commit comments