~repos /website
git clone https://pyrossh.dev/repos/website.git
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
04eaa4e0
—
pyrossh 2 weeks ago
restore alchemy
- alchemy.run.ts +5 -5
alchemy.run.ts
CHANGED
|
@@ -280,8 +280,8 @@ const reposBucketPolicy = await AWS.S3.BucketPolicy(`repos-bucket-policy-${app.s
|
|
|
280
280
|
// });
|
|
281
281
|
|
|
282
282
|
await app.finalize();
|
|
283
|
-
|
|
283
|
+
await $`rm -rf dist`
|
|
284
|
-
|
|
284
|
+
await $`bun run build`
|
|
285
|
-
|
|
285
|
+
await $`aws s3 sync --delete ./dist/ s3://${websiteBucket.BucketName}`
|
|
286
|
-
|
|
286
|
+
await $`aws cloudfront create-invalidation --distribution-id ${s3Distribution.Id} --paths "/*" --no-cli-pager`
|
|
287
|
-
|
|
287
|
+
await $`rm -rf dist`
|