Skip to content

Commit a6a9197

Browse files
committed
Deploy to a better path :D
1 parent b244e54 commit a6a9197

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/core/src/main/java/co/casterlabs/caffeinated/app/CaffeinatedApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ public boolean hasUpdate() {
428428
new Request.Builder()
429429
.url(
430430
String.format(
431-
"https://cdn.casterlabs.co/dist/%s/commit",
431+
"https://cdn.casterlabs.co/caffeinated/dist/%s/commit",
432432
this.buildInfo.getBuildChannel()
433433
)
434434
)

deploy-helper/src/main/java/co/casterlabs/autodeploy/DeployHelper.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ public static void main(String[] artifactsToUpload) throws FileNotFoundException
7070
Promise<Void> promise = new Promise<>(() -> {
7171
File artifactFile = new File(artifact);
7272

73-
logger.info("Uploading build artifact: %s to /dist/%s/%s (%d bytes)", artifactFile, branch, artifact, artifactFile.length());
73+
logger.info("Uploading build artifact: %s to /caffeinated/dist/%s/%s (%d bytes)", artifactFile, branch, artifact, artifactFile.length());
7474

7575
b2.uploadSmallFile(
7676
B2UploadFileRequest
7777
.builder(
7878
bucketId,
79-
String.format("dist/%s/%s", branch, artifact),
79+
String.format("caffeinated/dist/%s/%s", branch, artifact),
8080
B2ContentTypes.APPLICATION_OCTET,
8181
B2FileContentSource.build(artifactFile)
8282
)
@@ -94,13 +94,13 @@ public static void main(String[] artifactsToUpload) throws FileNotFoundException
9494
Promise<Void> promise = new Promise<>(() -> {
9595
File artifactFile = new File(artifact);
9696

97-
logger.info("Uploading build artifact: %s to /dist/beta/%s (%d bytes)", artifactFile, artifact, artifactFile.length());
97+
logger.info("Uploading build artifact: %s to /caffeinated/dist/beta/%s (%d bytes)", artifactFile, artifact, artifactFile.length());
9898

9999
b2.uploadSmallFile(
100100
B2UploadFileRequest
101101
.builder(
102102
bucketId,
103-
String.format("dist/beta/%s", artifact),
103+
String.format("caffeinated/dist/beta/%s", artifact),
104104
B2ContentTypes.APPLICATION_OCTET,
105105
B2FileContentSource.build(artifactFile)
106106
)
@@ -142,7 +142,7 @@ public static void main(String[] artifactsToUpload) throws FileNotFoundException
142142
B2UploadFileRequest
143143
.builder(
144144
bucketId,
145-
String.format("dist/%s/commit", branch),
145+
String.format("caffeinated/dist/%s/commit", branch),
146146
B2ContentTypes.TEXT_PLAIN, B2ByteArrayContentSource.build(commitShortHash.getBytes())
147147
)
148148
.build()
@@ -154,7 +154,7 @@ public static void main(String[] artifactsToUpload) throws FileNotFoundException
154154
B2UploadFileRequest
155155
.builder(
156156
bucketId,
157-
"dist/beta/commit",
157+
"caffeinated/dist/beta/commit",
158158
B2ContentTypes.TEXT_PLAIN, B2ByteArrayContentSource.build(commitShortHash.getBytes())
159159
)
160160
.build()

0 commit comments

Comments
 (0)