|
| 1 | +--- |
| 2 | +version: 2 |
| 3 | +deployment: |
| 4 | + name: VSCode Adblock Syntax - Deploy Prerelease |
| 5 | + source-plan: AJL-VSCODEADBLOCKSYNTAXBUILDPRERELEASE |
| 6 | +release-naming: ${bamboo.inject.version} |
| 7 | +environments: |
| 8 | + - marketplace.visualstudio.com |
| 9 | + - open-vsx.org |
| 10 | + |
| 11 | +marketplace.visualstudio.com: |
| 12 | + docker: |
| 13 | + image: adguard/node-ssh:22.14--0 |
| 14 | + volumes: |
| 15 | + ${system.PNPM_DIR}: "${bamboo.cachePnpm}" |
| 16 | + triggers: [] |
| 17 | + tasks: |
| 18 | + - checkout: |
| 19 | + force-clean-build: 'true' |
| 20 | + - artifact-download: |
| 21 | + artifacts: |
| 22 | + - name: vscode-adblock.vsix |
| 23 | + - script: |
| 24 | + interpreter: SHELL |
| 25 | + scripts: |
| 26 | + - |- |
| 27 | + set -e |
| 28 | + set -x |
| 29 | +
|
| 30 | + # Fix mixed logs |
| 31 | + exec 2>&1 |
| 32 | +
|
| 33 | + ls -laht |
| 34 | +
|
| 35 | + # Set cache directory |
| 36 | + pnpm config set store-dir ${bamboo.cachePnpm} |
| 37 | +
|
| 38 | + # Install dependencies |
| 39 | + pnpm install |
| 40 | +
|
| 41 | + # https://code.visualstudio.com/api/working-with-extensions/publishing-extension#publish-an-extension |
| 42 | + # https://github.com/microsoft/vscode-vsce/issues/421#issuecomment-1038911725 |
| 43 | + pnpm vsce publish --no-dependencies -p ${bamboo.vsceTokenPassword} --pre-release -i vscode-adblock.vsix |
| 44 | + final-tasks: |
| 45 | + - script: |
| 46 | + interpreter: SHELL |
| 47 | + scripts: |
| 48 | + - |- |
| 49 | + set -x |
| 50 | + set -e |
| 51 | +
|
| 52 | + # Fix mixed logs |
| 53 | + exec 2>&1 |
| 54 | +
|
| 55 | + ls -la |
| 56 | +
|
| 57 | + echo "Size before cleanup:" && du -h | tail -n 1 |
| 58 | +
|
| 59 | + # cleanup |
| 60 | + pnpm clean |
| 61 | +
|
| 62 | + echo "Size after cleanup:" && du -h | tail -n 1 |
| 63 | + requirements: |
| 64 | + - adg-docker: 'true' |
| 65 | + notifications: |
| 66 | + - events: |
| 67 | + - deployment-started-and-finished |
| 68 | + recipients: |
| 69 | + - webhook: |
| 70 | + name: Deploy webhook |
| 71 | + url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo |
| 72 | + |
| 73 | +open-vsx.org: |
| 74 | + docker: |
| 75 | + image: adguard/node-ssh:22.14--0 |
| 76 | + volumes: |
| 77 | + ${system.PNPM_DIR}: "${bamboo.cachePnpm}" |
| 78 | + triggers: [] |
| 79 | + tasks: |
| 80 | + - checkout: |
| 81 | + force-clean-build: 'true' |
| 82 | + - artifact-download: |
| 83 | + artifacts: |
| 84 | + - name: vscode-adblock.vsix |
| 85 | + - script: |
| 86 | + interpreter: SHELL |
| 87 | + scripts: |
| 88 | + - |- |
| 89 | + set -e |
| 90 | + set -x |
| 91 | +
|
| 92 | + # Fix mixed logs |
| 93 | + exec 2>&1 |
| 94 | +
|
| 95 | + ls -laht |
| 96 | +
|
| 97 | + # Set cache directory |
| 98 | + pnpm config set store-dir ${bamboo.cachePnpm} |
| 99 | +
|
| 100 | + # Install dependencies |
| 101 | + pnpm install |
| 102 | +
|
| 103 | + # https://github.com/eclipse/openvsx/wiki/Publishing-Extensions#5-package-and-upload |
| 104 | + pnpm ovsx publish vscode-adblock.vsix -p ${bamboo.openVsxTokenPassword} --pre-release |
| 105 | + final-tasks: |
| 106 | + - script: |
| 107 | + interpreter: SHELL |
| 108 | + scripts: |
| 109 | + - |- |
| 110 | + set -x |
| 111 | + set -e |
| 112 | +
|
| 113 | + # Fix mixed logs |
| 114 | + exec 2>&1 |
| 115 | +
|
| 116 | + ls -la |
| 117 | +
|
| 118 | + echo "Size before cleanup:" && du -h | tail -n 1 |
| 119 | +
|
| 120 | + # Cleanup |
| 121 | + pnpm clean |
| 122 | +
|
| 123 | + echo "Size after cleanup:" && du -h | tail -n 1 |
| 124 | + requirements: |
| 125 | + - adg-docker: 'true' |
| 126 | + notifications: |
| 127 | + - events: |
| 128 | + - deployment-started-and-finished |
| 129 | + recipients: |
| 130 | + - webhook: |
| 131 | + name: Deploy webhook |
| 132 | + url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo |
0 commit comments