Release #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ./ |