Skip to content

Commit

Permalink
V3 (#37)
Browse files Browse the repository at this point in the history
* Package updates

* Use node20

* Update to actions/checkout@v4

* Documentation update to most up to date node and actions
  • Loading branch information
jonelantha authored Nov 23, 2023
1 parent 329c598 commit ea38885
Show file tree
Hide file tree
Showing 7 changed files with 24,980 additions and 1,425 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
npm install
npm run all
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: Build
run: |
npm ci
npm run build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- name: Deploy
uses: jonelantha/gatsby-s3-action@v2
uses: jonelantha/gatsby-s3-action@v3
with:
dest-s3-bucket: your_bucket
```
Expand All @@ -58,7 +58,7 @@ Add the `cloudfront-id-to-invalidate` parameter to specify the ID of a distribut

```yaml
- name: Deploy
uses: jonelantha/gatsby-s3-action@v2
uses: jonelantha/gatsby-s3-action@v3
with:
dest-s3-bucket: your_bucket
cloudfront-id-to-invalidate: CLOUDFRONTID
Expand All @@ -70,7 +70,7 @@ Add the `dest-s3-path` parameter to specify a sub-directory to copy to in your b

```yaml
- name: Deploy
uses: jonelantha/gatsby-s3-action@v2
uses: jonelantha/gatsby-s3-action@v3
with:
dest-s3-bucket: your_bucket
dest-s3-path: blog/files
Expand All @@ -82,7 +82,7 @@ Gatsby builds to ./public by default. If you've changed the build directory to s

```yaml
- name: Deploy
uses: jonelantha/gatsby-s3-action@v2
uses: jonelantha/gatsby-s3-action@v3
with:
dest-s3-bucket: your_bucket
public-source-path: ./build/
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ inputs:
description: 'Boolean, enable debug logging (default: false)'
default: 'false'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'upload-cloud'
Expand Down
Loading

0 comments on commit ea38885

Please sign in to comment.