Skip to content

Commit 7b30ebe

Browse files
totadavid95maximtop
authored andcommitted
Pull request 70: AG-49278 Remove GitHub Actions release workflow and migrate to Bamboo deployment
Squashed commit of the following: commit 7a315df Author: scripthunter7 <d.tota@adguard.com> Date: Wed Dec 10 17:39:12 2025 +0100 Update cleanup script to preserve additional build artifacts - Add syntaxes/out/adblock.plist and EXTRACTED_CHANGES.md to preserved artifacts in cleanup.sh calls - Apply changes to both build.yaml and build-prerelease.yaml specifications commit 85d4d01 Merge: d473d2b fc8d0eb Author: scripthunter7 <d.tota@adguard.com> Date: Wed Dec 10 17:37:02 2025 +0100 Merge branch 'master' into fix/AG-49278 commit d473d2b Author: scripthunter7 <d.tota@adguard.com> Date: Wed Dec 10 08:40:10 2025 +0100 Add GitHub environment permissions for extensions-developers group - Add GitHub deployment environment to permissions.yaml and permissions-prerelease.yaml - Grant view and deploy permissions to extensions-developers group for GitHub environment commit fe53bf5 Author: scripthunter7 <d.tota@adguard.com> Date: Tue Dec 9 22:19:56 2025 +0100 Remove GitHub Actions release workflow and migrate to Bamboo deployment - Remove .github/workflows/release.yml GitHub Actions workflow - Add changelog extraction step to build.yaml and build-prerelease.yaml using changelog-tools - Add EXTRACTED_CHANGES.md and adblock.plist as shared artifacts in build specs - Add GitHub deployment environment to deploy.yaml and deploy-prerelease.yaml - Configure GitHub deployment tasks to publish releases using bamboo-deploy-publisher - Add @adguard/changelog-tools dependency
1 parent fc8d0eb commit 7b30ebe

9 files changed

Lines changed: 150 additions & 130 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 126 deletions
This file was deleted.

bamboo-specs/build-prerelease.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff 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

bamboo-specs/build.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff 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

bamboo-specs/deploy-prerelease.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ release-naming: ${bamboo.inject.version}
77
environments:
88
- marketplace.visualstudio.com
99
- open-vsx.org
10+
- GitHub
1011

1112
marketplace.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

bamboo-specs/deploy.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ release-naming: ${bamboo.inject.version}
77
environments:
88
- marketplace.visualstudio.com
99
- open-vsx.org
10+
- GitHub
1011

1112
marketplace.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

bamboo-specs/permissions-prerelease.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

bamboo-specs/permissions.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
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",

pnpm-lock.yaml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)