Skip to content

design: Change to responsive grid design #46

design: Change to responsive grid design

design: Change to responsive grid design #46

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Deploy
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout source code.
uses: actions/checkout@v4
- name: Install SWC # next-swc dependency handling
run: yarn add swc
- name: Install Dependencies
run: yarn install --immutable --immutable-cache
- name: Build
run: yarn build
- name: zip create
run: zip -qq -r ./test-build.zip .
shell: bash
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Upload to S3
run: |
aws s3 cp --region ap-northeast-2 ./test-build.zip s3://next-blog-s3-bucket/test-build.zip
- name: Deploy
run: aws deploy create-deployment
--application-name next-blog-codeDeploy
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name next-blog-group
--s3-location bucket=next-blog-s3-bucket,key=test-build.zip,bundleType=zip