|
15 | 15 | steps: |
16 | 16 | - name: Placeholder |
17 | 17 | run: echo "Deployment steps are defined in amplify.yml" |
18 | | - |
19 | | - # - name: Checkout code |
20 | | - # uses: actions/checkout@v4 |
21 | | - # # Setup Node.js |
22 | | - # - name: Setup Node.js |
23 | | - # uses: actions/setup-node@v4 |
24 | | - # with: |
25 | | - # node-version: 20 |
26 | | - # cache: "yarn" |
27 | | - # # Configure AWS Credentials |
28 | | - # - name: Configure AWS credentials |
29 | | - # uses: aws-actions/configure-aws-credentials@v4 |
30 | | - # with: |
31 | | - # role-to-assume: ${{ secrets.AWS_ROLE_ARN }} |
32 | | - # aws-region: ap-southeast-1 |
33 | | - # # Install dependencies |
34 | | - # - name: Install dependencies |
35 | | - # run: yarn install --frozen-lockfile |
36 | | - # # Load NEXT_PUBLIC envs from Secret JSON |
37 | | - # - name: Load NEXT_PUBLIC envs from JSON secret |
38 | | - # run: | |
39 | | - # echo '${{ secrets.DEV_NEXT_PUBLIC_ENV }}' | jq '.' > next_public_env.json |
40 | | - # jq -r 'to_entries[] | "\(.key)=\(.value)"' next_public_env.json >> $GITHUB_ENV |
41 | | - # # Load server-only API envs from Secret JSON |
42 | | - # - name: Load NEXT_API envs from JSON secret |
43 | | - # run: | |
44 | | - # echo '${{ secrets.DEV_NEXT_API_ENV }}' | jq '.' > next_api_env.json |
45 | | - # jq -r 'to_entries[] | "\(.key)=\(.value)"' next_api_env.json >> $GITHUB_ENV |
46 | | - # # Create ZIP of source code |
47 | | - # - name: Create ZIP |
48 | | - # run: zip -r app.zip . -x "*.git*" "*node_modules*" |
49 | | - # # Deploy to Amplify |
50 | | - # - name: Deploy to Amplify |
51 | | - # run: | |
52 | | - # DEPLOYMENT=$(aws amplify create-deployment --app-id ${{ secrets.AMPLIFY_APP_ID }} --branch-name staging) |
53 | | - # JOB_ID=$(echo $DEPLOYMENT | jq -r '.jobId') |
54 | | - # ZIP_URL=$(echo $DEPLOYMENT | jq -r '.zipUploadUrl') |
55 | | - # curl -X PUT -H "Content-Type: application/zip" --data-binary @app.zip "$ZIP_URL" |
56 | | - # aws amplify start-deployment --app-id ${{ secrets.AMPLIFY_APP_ID }} --branch-name staging --job-id "$JOB_ID" |
0 commit comments