Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/deploy-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,31 @@ on:

permissions:
contents: read
id-token: write # OIDC
id-token: write # OIDC

jobs:
deploy-staging:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Build
run: |
npm install
npx webpack

- name: Configure AWS Credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::212595788859:role/GHADevenneyIO

- name: Publish to preview
run: |
aws s3 sync dist s3://${{ secrets.PRE_AWS_S3_BUCKET_NAME }}/
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Build
run: |
npm install
npx webpack

- name: Configure AWS Credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUHT_ID }}:role/GHADevenneyIO

- name: Publish to preview
run: |
aws s3 sync dist s3://${{ secrets.PRE_AWS_S3_BUCKET_NAME }}/
52 changes: 26 additions & 26 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,35 @@ on:

permissions:
contents: read
id-token: write # OIDC
id-token: write # OIDC

jobs:
deploy-production:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Build
run: |
npm install
npx webpack

- name: Configure AWS Credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::212595788859:role/GHADevenneyIO

- name: Publish to actual
run: |
aws s3 sync dist s3://${{ secrets.ACTUAL_AWS_S3_BUCKET_NAME }}/

- name: Invalidate CloudFront
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.ACTUAL_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Build
run: |
npm install
npx webpack

- name: Configure AWS Credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUHT_ID }}:role/GHADevenneyIO

- name: Publish to actual
run: |
aws s3 sync dist s3://${{ secrets.ACTUAL_AWS_S3_BUCKET_NAME }}/

- name: Invalidate CloudFront
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.ACTUAL_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,16 @@ To serve the code locally, the project uses `webpack-dev-server`. A script is pr
npm run local
```

The hot reloaded code should then be available at http://localhost:8000.
The hot reloaded code should then be available at http://localhost:8000.

## Blog Posts

Blog posts are held in `./src/content/blog/`.

The following YAML frontmatter is required for each post:

- `title`: The short title of the post.
- `description`: A synopsis of the post. This will be displayed on the blog listing page.
- `date`: The ISO8601 publication date.

File names should be in the format `YYYY-MM-DD-short-description.md`.
Loading