Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Jan 27, 2025
1 parent 9a7bdf0 commit 6b5a4ae
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions src/pages/guides/hosting/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ If you're using GitHub, you can use GitHub Actions to automate the pushing of bu
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.

<!-- prettier-ignore-start -->

<app-ctc-block variant="snippet" heading=".github/workflows/publish.yml">

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

# match to your version of NodeJS
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22

- name: Install Dependencies
run: |
npm ci

# use your greenwood build script
- name: Run Build
run: |
npm run build

- name: Upload to S3 and invalidate CDN
uses: opspresso/action-s3-sync@master
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# make sure this matches your bucket's region
AWS_REGION: "us-east-1"
FROM_PATH: "./public"
# your target s3 bucket name goes here
DEST_PATH: s3://${{ secrets.AWS_BUCKET_NAME }}
# match to your version of NodeJS
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22

- name: Install Dependencies
run: |
npm ci

# use your greenwood build script
- name: Run Build
run: |
npm run build

- name: Upload to S3 and invalidate CDN
uses: opspresso/action-s3-sync@master
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# make sure this matches your bucket's region
AWS_REGION: "us-east-1"
FROM_PATH: "./public"
# your target s3 bucket name goes here
DEST_PATH: s3://${{ secrets.AWS_BUCKET_NAME }}
```

</app-ctc-block>
Expand Down

0 comments on commit 6b5a4ae

Please sign in to comment.