Skip to content

fix: 전용 workflow으로 수정. #4

fix: 전용 workflow으로 수정.

fix: 전용 workflow으로 수정. #4

Workflow file for this run

name: Deployment

Check failure on line 1 in .github/workflows/front-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/front-deploy.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: deploy
on:
push:
branches: ["dev"]
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "ap-northest-2"
jobs:
deploy:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Environment
uses: actions/setup-node@master
with:
node-version: v18.13.0
- name: Setup Project
run: yarn
- name: Build Project
run: yarn build
- name: Upload to S3
run: aws s3 sync dist s3://${{ secrets.S3_BUCKET_NAME }} --delete
- name: Invalidate Cloudfront
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --path "/*"
BUILD_COMMAND: yarn build