Skip to content

Commit eb6996d

Browse files
committed
ci: switch asset deployment order
Signed-off-by: Philip Miglinci <[email protected]>
1 parent 63265a5 commit eb6996d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/website.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ jobs:
4545
with:
4646
aws-region: us-east-1
4747
role-to-assume: arn:aws:iam::855808870739:role/github-actions-jetski.sh
48-
- name: Deploy short lived content
48+
- name: Deploy assets
4949
if: github.ref == 'refs/heads/main'
5050
run: >-
51-
aws s3 sync dist s3://hyprmcp.com/
52-
--cache-control "max-age=60, public"
51+
aws s3 sync dist/_astro s3://hyprmcp.com/_astro
52+
--cache-control "max-age=604800, public"
5353
--acl=public-read
54-
- name: Deploy long lived content
54+
- name: Deploy short lived content
5555
if: github.ref == 'refs/heads/main'
5656
run: >-
57-
aws s3 sync dist/_astro s3://hyprmcp.com/_astro
58-
--cache-control "max-age=604800, public"
57+
aws s3 sync dist s3://hyprmcp.com/
58+
--cache-control "max-age=60, public"
5959
--acl=public-read
6060
- name: Invalidate cache
6161
if: github.ref == 'refs/heads/main'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ All commands are run from the root of the project, from a terminal:
99
| Command | Action |
1010
| :--------------------- | :----------------------------------------------- |
1111
| `pnpm install` | Installs dependencies |
12-
| `pnpm dev` | Starts local dev server at `localhost:4321` |
12+
| `pnpm dev` | Starts local dev server at `localhost:4432` |
1313
| `pnpm build` | Build your production site to `./dist/` |
1414
| `pnpm preview` | Preview your build locally, before deploying |
1515
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"type": "module",
44
"version": "0.0.1",
55
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev",
6+
"dev": "astro dev --port 4432",
7+
"start": "astro dev --port 4432",
88
"build": "astro build",
99
"preview": "astro preview",
1010
"astro": "astro",

0 commit comments

Comments
 (0)