Skip to content

style: 대본열람 푸터, 하단바 320에 맞추어 수정 (#281) #134

style: 대본열람 푸터, 하단바 320에 맞추어 수정 (#281)

style: 대본열람 푸터, 하단바 320에 맞추어 수정 (#281) #134

Workflow file for this run

name: FrontEnd - deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@master
- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install npm Dependencies
run: npm install
- name: Build
env:
CI: ''
REACT_APP_SERVER: ${{ secrets.REACT_APP_SERVER }}
run: npm run build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
- name: Upload to S3
run: |
aws s3 cp \
--recursive \
--region ap-northeast-2 \
dist s3://www.podo-store.com
- name: Invalidate files
run: |
aws cloudfront create-invalidation \
--distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} \
--paths "/*"
- name: Deployment Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: "#깃헙액션-배포"
SLACK_COLOR: ${{ job.status == 'success' && 'good' || 'danger' }}
SLACK_MESSAGE: |
*배포 결과:* ${{ job.status == 'success' && '✅ 성공' || '❌ 실패' }}
*프로젝트:* 포도상점 - FrontEnd CI/CD - Deploy
*브랜치:* ${{ github.ref_name }}
*커밋 메시지:* ${{ github.event.head_commit.message }}
*커밋 작성자:* ${{ github.event.head_commit.author.name }}
SLACK_TITLE: "배포 결과 알림"
SLACK_USERNAME: "Notification-Bot"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()