[friends-native] vivid_ios api 제거 (#194) #5
Workflow file for this run
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: deploy-snutt-webclient-prod | |
on: | |
push: | |
tags: | |
- snutt-webclient-prod-* | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
environment: prod | |
defaults: | |
run: | |
working-directory: ./apps/snutt-webclient | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1-node16 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
- name: Build & Export | |
run: | | |
yarn install | |
VITE_API_KEY=${{ secrets.BACKEND_API_KEY }} \ | |
VITE_TRUFFLE_API_KEY=${{ secrets.SNUTT_WEBCLIENT_TRUFFLE_API_KEY }} \ | |
VITE_GIT_SHA=$(git rev-parse HEAD) \ | |
VITE_GIT_TAG=$(git describe --tags) \ | |
yarn build:prod | |
- name: Deploy to S3 and Invalidate Cloudfront | |
id: deploy-s3 | |
env: | |
AWS_S3_BUCKET: ${{ secrets.SNUTT_WEBCLIENT_S3_BUCKET }} | |
AWS_CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.SNUTT_WEBCLIENT_CLOUDFRONT_DISTRIBUTION_ID }} | |
run: | | |
aws s3 sync ./dist s3://$AWS_S3_BUCKET --delete | |
aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID --paths "/*" |