Update main.yml #27
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: here you action | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code. | |
uses: actions/checkout@v3 | |
- name: Check Node v | |
run: node -v | |
- name: Install dependencies | |
run: yarn | |
- name: Generate build | |
run: yarn build | |
- name: Set environment variables | |
run: | | |
echo "VITE_NODE_ENV=${{ secrets.VITE_NODE_ENV }}" >> $GITHUB_ENV | |
echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" >> $GITHUB_ENV | |
echo "VITE_GOOGLE_MAP_API=${{ secrets.VITE_GOOGLE_MAP_API }}" >> $GITHUB_ENV | |
echo "VITE_GOOGLE_AUTH_CLIENT_ID=${{ secrets.VITE_GOOGLE_AUTH_CLIENT_ID }}" >> $GITHUB_ENV | |
echo "VITE_KAKAO_REST_API_KEAY=${{ secrets.VITE_KAKAO_REST_API_KEAY }}" >> $GITHUB_ENV | |
echo "VITE_REDIRECT_URI=${{ secrets.VITE_REDIRECT_URI }}" >> $GITHUB_ENV | |
- name: Deploy | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
aws s3 cp --recursive --region ap-northeast-2 build s3://hereyoubuckey |