Feat: 답변 근거 클릭 시에 해당 답변 근거로 이동 #21
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 to s3 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Generate environment variables file for production | |
run: | | |
echo "VITE_REACT_APP_AWS_SERVER=${{ secrets.VITE_REACT_APP_AWS_SERVER }}" >> $GITHUB_ENV | |
# - name: npm install, build | |
# run: | | |
# npm i | |
# npm run build | |
# env: | |
# NODE_OPTIONS: --openssl-legacy-provider | |
- name: Install Node modules | |
if: steps.node-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
# Currently necessary for Webpack | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
- name: Build reader | |
run: npm run build | |
# Currently necessary for Webpack | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
- name: Deploy | |
uses: reggionick/s3-deploy@v3 | |
with: | |
folder: build/dev | |
bucket: ${{ secrets.S3_BUCKET }} | |
bucket-region: ${{ secrets.S3_BUCKET_REGION }} | |
# dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} | |
invalidation: / | |
delete-removed: true | |
no-cache: true | |
private: true |