Skip to content

Merge pull request #17 from TEAM-FLASH/dev #8

Merge pull request #17 from TEAM-FLASH/dev

Merge pull request #17 from TEAM-FLASH/dev #8

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Check Node v
run: node -v
- name: Install pnpm
run: npm install -g [email protected]
- name: Check pnpm version
run: pnpm -v
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: zip create
run: zip -qq -r ./build.zip .
shell: bash
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
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
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: aws s3 cp --region ap-northeast-2 ./build.zip s3://toucheese-team4-s3/build.zip
- name: Deploy
run: aws deploy create-deployment
--application-name TOUCHEESE-TEAM4
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name TOUCHEESE-TEAM4-Deploy-Group
--s3-location bucket=toucheese-team4-s3,key=build.zip,bundleType=zip