feat(memory - hooks): add isInitialLoad state to manage initial loa…
#30
This file contains hidden or 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 Development Server | |
| on: | |
| push: | |
| branches: [ "develop" ] # main 브랜치에 push될 때 실행 | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Create .env.development file | |
| run: | | |
| echo "VITE_API_BASE_URL=${{ secrets.API_BASE_URL }}" > .env.development | |
| echo "VITE_GOOGLE_MAPS_API_KEY=${{ secrets.GOOGLE_MAPS_API_KEY }}" >> .env.development | |
| - name: Build | |
| run: npm run build:dev | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY }} | |
| aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_KEY }} | |
| aws-region: ap-northeast-2 | |
| - name: Deploy to S3 | |
| run: | | |
| aws s3 sync dist/ s3://dev.mymemory.co.kr --delete |