From 92170fe3d7f74c4fc2827d2224b6b10a27fb6a17 Mon Sep 17 00:00:00 2001 From: "raoha.rh" Date: Fri, 13 Sep 2024 14:28:50 +0800 Subject: [PATCH] feat: add github actions --- .github/workflows/aws-amplify.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aws-amplify.yml b/.github/workflows/aws-amplify.yml index 687d128b..74e04ab7 100644 --- a/.github/workflows/aws-amplify.yml +++ b/.github/workflows/aws-amplify.yml @@ -59,8 +59,10 @@ jobs: run: npm run build working-directory: ./client # 仅在 ./client 目录下构建 Next.js 应用程序 - - name: Configure Amplify - run: amplify configure + - name: Initialize Amplify + run: | + amplify pull --appId ${{ secrets.AMPLIFY_APP_ID }} --envName dev --yes + amplify env checkout dev - name: Deploy to Amplify env: