Skip to content

🚀 배포 테스트 #2

🚀 배포 테스트

🚀 배포 테스트 #2

Workflow file for this run

name: Deploy
on:
push:
branches:
- deploy
jobs:
build:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
steps:
- name: Checkout source code.
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Set environment variables
run: echo "REACT_APP_SERVER_URL=${{ secrets.REACT_APP_API_URL }}" >> .env
- name: Install dependencies
run: |
npm install
- name: Build project
run: |
npm run build
env:
CI: false
- name: Show AWS CLI Version
run: aws --version
- name: Sync S3 Bucket
run: |
aws s3 sync \
build s3://${{secrets.S3_BUCKETS}} \
--delete