Skip to content

Commit 478e3cd

Browse files
committed
Update deploy to go to AWS
1 parent 8091657 commit 478e3cd

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/deploy.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
uses: actions/checkout@v4
1212
- uses: oven-sh/setup-bun@v2
1313
- uses: jongwooo/next-cache@v1
14-
- name: Install and Build
14+
- name: Setup AWS CLI
15+
uses: aws-actions/configure-aws-credentials@v1
16+
with:
17+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
18+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
19+
aws-region: us-west-2
20+
- name: Build & Deploy
1521
run: |
1622
bun install --frozen-lockfile
17-
bun run build
18-
touch out/.nojekyll
19-
20-
- name: Deploy 🚀
21-
uses: JamesIves/github-pages-deploy-action@v4
22-
with:
23-
folder: out
23+
bun run deploy

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"scripts": {
55
"dev": "next dev",
66
"build": "next build && next-sitemap",
7-
"start": "next start"
8-
},
9-
"engines": {
10-
"node": ">=20"
7+
"start": "next start",
8+
"deploy": "bun run build && bun run deploy:prod:push && bun run deploy:prod:invalidate",
9+
"deploy:prod:push": "aws s3 sync --delete ./out/ s3://apsis.io",
10+
"deploy:prod:invalidate": "aws cloudfront create-invalidation --distribution-id E3WVG8TZYTCD --paths '/*'"
1111
},
1212
"repository": {
1313
"type": "git",

0 commit comments

Comments
 (0)