Skip to content

Commit 6b5a4ae

Browse files
formatting
1 parent 9a7bdf0 commit 6b5a4ae

File tree

1 file changed

+27
-27
lines changed
  • src/pages/guides/hosting

1 file changed

+27
-27
lines changed

src/pages/guides/hosting/aws.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ If you're using GitHub, you can use GitHub Actions to automate the pushing of bu
6767
1. At the root of your repo add a GitHub Action called _.github/workflows/publish.yml_ and adapt as needed for your own branch, build commands, and package manager.
6868

6969
<!-- prettier-ignore-start -->
70-
70+
7171
<app-ctc-block variant="snippet" heading=".github/workflows/publish.yml">
7272

7373
```yml
@@ -82,32 +82,32 @@ If you're using GitHub, you can use GitHub Actions to automate the pushing of bu
8282
build:
8383
runs-on: ubuntu-latest
8484

85-
# match to your version of NodeJS
86-
steps:
87-
- uses: actions/checkout@v4
88-
- uses: actions/setup-node@v4
89-
with:
90-
node-version: 22
91-
92-
- name: Install Dependencies
93-
run: |
94-
npm ci
95-
96-
# use your greenwood build script
97-
- name: Run Build
98-
run: |
99-
npm run build
100-
101-
- name: Upload to S3 and invalidate CDN
102-
uses: opspresso/action-s3-sync@master
103-
env:
104-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
105-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
106-
# make sure this matches your bucket's region
107-
AWS_REGION: "us-east-1"
108-
FROM_PATH: "./public"
109-
# your target s3 bucket name goes here
110-
DEST_PATH: s3://${{ secrets.AWS_BUCKET_NAME }}
85+
# match to your version of NodeJS
86+
steps:
87+
- uses: actions/checkout@v4
88+
- uses: actions/setup-node@v4
89+
with:
90+
node-version: 22
91+
92+
- name: Install Dependencies
93+
run: |
94+
npm ci
95+
96+
# use your greenwood build script
97+
- name: Run Build
98+
run: |
99+
npm run build
100+
101+
- name: Upload to S3 and invalidate CDN
102+
uses: opspresso/action-s3-sync@master
103+
env:
104+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
105+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
106+
# make sure this matches your bucket's region
107+
AWS_REGION: "us-east-1"
108+
FROM_PATH: "./public"
109+
# your target s3 bucket name goes here
110+
DEST_PATH: s3://${{ secrets.AWS_BUCKET_NAME }}
111111
```
112112

113113
</app-ctc-block>

0 commit comments

Comments
 (0)