Skip to content

Release

Release #16

Workflow file for this run

name: client
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout source code.
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
working-directory: ./
- name: Setting .env
run: |
echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" >> .env
cat .env
working-directory: ./
env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}
- name: Build
run: npm run build
working-directory: ./
- name: SHOW AWS CLI VERSION
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
run: |
aws --version
- name: Sync Bucket
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
run: |
aws s3 sync \
--region ap-northeast-2 \
dist s3://ggumtle-frontend \
--delete
working-directory: ./