File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -64,25 +64,41 @@ Build:
6464 file : out/build.txt
6565 scope : RESULT
6666 namespace : inject
67+ - script :
68+ interpreter : SHELL
69+ scripts :
70+ - |
71+ set -e
72+
73+ # Extract related changes from changelog
74+ pnpm exec changelog-tools extract --extract-version ${bamboo.inject.version} > ./EXTRACTED_CHANGES.md
6775 - any-task :
6876 plugin-key : com.atlassian.bamboo.plugins.vcs:task.vcs.tagging
6977 configuration :
7078 selectedRepository : defaultRepository
7179 tagName : v${bamboo.inject.version}
72- # annotated tag
73- description : prerelease
7480 final-tasks :
7581 - script :
7682 interpreter : SHELL
7783 scripts :
78- - " ./bamboo-specs/scripts/cleanup.sh out/vscode-adblock.vsix"
84+ - " ./bamboo-specs/scripts/cleanup.sh out/vscode-adblock.vsix syntaxes/out/adblock.plist EXTRACTED_CHANGES.md "
7985 # Store the .vsix file as a build artifact
8086 artifacts :
8187 - name : vscode-adblock.vsix
8288 location : out
8389 pattern : vscode-adblock.vsix
8490 shared : true
8591 required : true
92+ - name : EXTRACTED_CHANGES.md
93+ location : .
94+ pattern : EXTRACTED_CHANGES.md
95+ shared : true
96+ required : true
97+ - name : adblock.plist
98+ location : syntaxes/out
99+ pattern : adblock.plist
100+ shared : true
101+ required : true
86102 requirements :
87103 - adg-docker : true
88104
Original file line number Diff line number Diff line change @@ -64,6 +64,14 @@ Build:
6464 file : out/build.txt
6565 scope : RESULT
6666 namespace : inject
67+ - script :
68+ interpreter : SHELL
69+ scripts :
70+ - |
71+ set -e
72+
73+ # Extract related changes from changelog
74+ pnpm exec changelog-tools extract --extract-version ${bamboo.inject.version} > ./EXTRACTED_CHANGES.md
6775 - any-task :
6876 plugin-key : com.atlassian.bamboo.plugins.vcs:task.vcs.tagging
6977 configuration :
@@ -73,14 +81,24 @@ Build:
7381 - script :
7482 interpreter : SHELL
7583 scripts :
76- - " ./bamboo-specs/scripts/cleanup.sh out/vscode-adblock.vsix"
84+ - " ./bamboo-specs/scripts/cleanup.sh out/vscode-adblock.vsix syntaxes/out/adblock.plist EXTRACTED_CHANGES.md "
7785 # Store the .vsix file as a build artifact
7886 artifacts :
7987 - name : vscode-adblock.vsix
8088 location : out
8189 pattern : vscode-adblock.vsix
8290 shared : true
8391 required : true
92+ - name : EXTRACTED_CHANGES.md
93+ location : .
94+ pattern : EXTRACTED_CHANGES.md
95+ shared : true
96+ required : true
97+ - name : adblock.plist
98+ location : syntaxes/out
99+ pattern : adblock.plist
100+ shared : true
101+ required : true
84102 requirements :
85103 - adg-docker : true
86104
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ release-naming: ${bamboo.inject.version}
77environments :
88 - marketplace.visualstudio.com
99 - open-vsx.org
10+ - GitHub
1011
1112marketplace.visualstudio.com :
1213 docker :
@@ -102,3 +103,42 @@ open-vsx.org:
102103 - webhook :
103104 name : Deploy webhook
104105 url : http://prod.jirahub.service.eu.consul/v1/webhook/bamboo
106+
107+ GitHub :
108+ triggers : []
109+ tasks :
110+ - clean
111+ - checkout :
112+ repository : bamboo-deploy-publisher
113+ path : bamboo-deploy-publisher
114+ force-clean-build : true
115+ - artifact-download :
116+ artifacts :
117+ - name : vscode-adblock.vsix
118+ - name : EXTRACTED_CHANGES.md
119+ - name : adblock.plist
120+ - script :
121+ interpreter : SHELL
122+ scripts :
123+ - |-
124+ set -x
125+ set -e
126+
127+ # Fix mixed logs
128+ exec 2>&1
129+
130+ ls -laht
131+
132+ # publish to Github Releases
133+ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}" \
134+ ./bamboo-deploy-publisher/deploy.sh vscode-adblock-syntax-github-prerelease
135+ final-tasks : []
136+ requirements :
137+ - adg-docker : ' true'
138+ notifications :
139+ - events :
140+ - deployment-started-and-finished
141+ recipients :
142+ - webhook :
143+ name : Deploy webhook
144+ url : http://prod.jirahub.service.eu.consul/v1/webhook/bamboo
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ release-naming: ${bamboo.inject.version}
77environments :
88 - marketplace.visualstudio.com
99 - open-vsx.org
10+ - GitHub
1011
1112marketplace.visualstudio.com :
1213 docker :
@@ -102,3 +103,42 @@ open-vsx.org:
102103 - webhook :
103104 name : Deploy webhook
104105 url : http://prod.jirahub.service.eu.consul/v1/webhook/bamboo
106+
107+ GitHub :
108+ triggers : []
109+ tasks :
110+ - clean
111+ - checkout :
112+ repository : bamboo-deploy-publisher
113+ path : bamboo-deploy-publisher
114+ force-clean-build : true
115+ - artifact-download :
116+ artifacts :
117+ - name : vscode-adblock.vsix
118+ - name : EXTRACTED_CHANGES.md
119+ - name : adblock.plist
120+ - script :
121+ interpreter : SHELL
122+ scripts :
123+ - |-
124+ set -x
125+ set -e
126+
127+ # Fix mixed logs
128+ exec 2>&1
129+
130+ ls -laht
131+
132+ # publish to Github Releases
133+ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}" \
134+ ./bamboo-deploy-publisher/deploy.sh vscode-adblock-syntax-github-release
135+ final-tasks : []
136+ requirements :
137+ - adg-docker : ' true'
138+ notifications :
139+ - events :
140+ - deployment-started-and-finished
141+ recipients :
142+ - webhook :
143+ name : Deploy webhook
144+ url : http://prod.jirahub.service.eu.consul/v1/webhook/bamboo
Original file line number Diff line number Diff line change @@ -20,3 +20,9 @@ environment-permissions:
2020 permissions :
2121 - view
2222 - deploy
23+ - GitHub :
24+ - groups :
25+ - extensions-developers
26+ permissions :
27+ - view
28+ - deploy
Original file line number Diff line number Diff line change @@ -20,3 +20,9 @@ environment-permissions:
2020 permissions :
2121 - view
2222 - deploy
23+ - GitHub :
24+ - groups :
25+ - extensions-developers
26+ permissions :
27+ - view
28+ - deploy
Original file line number Diff line number Diff line change 100100 "watch:server" : " pnpm esbuild:server --sourcemap --watch"
101101 },
102102 "devDependencies" : {
103+ "@adguard/changelog-tools" : " ^0.0.1" ,
103104 "@swc/core" : " ^1.3.76" ,
104105 "@swc/jest" : " ^0.2.28" ,
105106 "@types/fs-extra" : " ^11.0.1" ,
You can’t perform that action at this time.
0 commit comments