Skip to content

Commit 69133cb

Browse files
committed
Package release as part of Travis deploy
1 parent cd48895 commit 69133cb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ before_deploy:
1717
- git config --local user.name "$USER_NAME"
1818
- git config --local user.email "$USER_EMAIL"
1919
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
20+
- yarn task package "$TRAVIS_TAG" "$TRAVIS_OS_NAME"
2021
deploy:
2122
provider: releases
2223
file_glob: true
@@ -27,7 +28,9 @@ deploy:
2728
skip_cleanup: true
2829
api_key:
2930
secure: YL/x24KjYjgYXPcJWk3FV7FGxI79Mh6gBECQEcdlf3fkLEoKFVgzHBoUNWrFPzyR4tgLyWNAgcpD9Lkme1TRWTom7UPjXcwMNyLcLa+uec7ciSAnYD9ntLTpiCuPDD1u0LtRGclSi/EHQ+F8YVq+HZJpXTsJeAmOmihma3GVbGKSZr+BRum+0YZSG4w+o4TOlYzw/4bLWS52MogZcwpjd+hemBbgXLuGU2ziKv2vEKCZFbEeA16II4x1WLI4mutDdCeh7+3aLzGLwDa49NxtsVYNjyNFF75JhCTCNA55e2YMiLz9Uq69IXe/mi5F7xUaFfhIqqLNyKBnKeEOzu3dYnc+8n3LjnQ+00PmkF05nx9kBn3UfV1kwQGh6QbyDmTtBP07rtUMyI14aeQqHjxsaVRdMnwj9Q2DjXRr8UDqESZF0rmK3pHCXS2fBhIzLE8tLVW5Heiba2pQRFMHMZW+KBE97FzcFh7is90Ait3T8enfcd/PWFPYoBejDAdjwxwOkezh5N5ZkYquEfDYuWrFi6zRFCktsruaAcA+xGtTf9oilBBzUqu8Ie+YFWH5me83xakcblJWdaW/D2rLJAJH3m6LFm8lBqyUgDX5t/etob6CpDuYHu5D1J3XINOj/+aLAcadq6qlh70PMZS3zYffUu3JlzaD2amlSHIT8b5YXFc=
30-
file: packages/server/cli-*
31+
file:
32+
- release/*.tar.gz
33+
- release/*.zip
3134
on:
3235
repo: codercom/code-server
3336
branch: master

build/tasks.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -260,25 +260,22 @@ const ensurePatched = register("vscode:patch", async (runner) => {
260260
}
261261
});
262262

263-
register("package", async (runner, binaryPath, releaseTag, platform) => {
264-
if (!binaryPath) {
265-
throw new Error("Please specify the location of the binary.");
266-
}
263+
register("package", async (runner, releaseTag, platform) => {
267264
if (!releaseTag) {
268265
throw new Error("Please specify the release tag.");
269266
}
270267
if (!platform) {
271268
throw new Error("Please specify the platform.");
272269
}
273270

274-
const releasePath = path.resolve(__dirname, `../release/${releaseTag}`);
275-
fse.mkdirpSync(releasePath);
271+
const releasePath = path.resolve(__dirname, `../release`);
276272

277273
const archiveName = `code-server-${releaseTag}-${platform}`;
278274
const archiveDir = path.join(releasePath, archiveName);
279275
fse.removeSync(archiveDir);
280276
fse.mkdirpSync(archiveDir);
281277

278+
const binaryPath = path.join(__dirname, `../packages/server/cli-${platform}`);
282279
const binaryDestination = path.join(archiveDir, "code-server");
283280
fse.copySync(binaryPath, binaryDestination);
284281
fs.chmodSync(binaryDestination, "755");

0 commit comments

Comments
 (0)