Merge pull request #27 from XRPL-Hackathon/24-feat-메인페이지-로직-수정 #10
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 Amazon S3 | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| env: | |
| AWS_REGION: ${{ vars.AWS_REGION }} | |
| AWS_ROLE: ${{ vars.AWS_ROLE }} | |
| S3_BUCKET: ${{ vars.S3_BUCKET }} | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| environment: production | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build | |
| run: npm run build | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v1 | |
| with: | |
| role-to-assume: ${{ env.AWS_ROLE }} | |
| aws-region: ${{ env.AWS_REGION }} | |
| - name: Deploy to S3 | |
| run: aws s3 sync --region ${{ env.AWS_REGION }} ./dist s3://${{ env.S3_BUCKET }} --delete |