From cac3e404885b6b229bdb9af3a2546021a5305aed Mon Sep 17 00:00:00 2001 From: "raoha.rh" Date: Fri, 13 Sep 2024 14:00:27 +0800 Subject: [PATCH] feat: add github actions --- .github/workflows/aws-amplify.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/aws-amplify.yml b/.github/workflows/aws-amplify.yml index 687d128b..d3836de4 100644 --- a/.github/workflows/aws-amplify.yml +++ b/.github/workflows/aws-amplify.yml @@ -62,6 +62,10 @@ jobs: - name: Configure Amplify run: amplify configure + # 切换到仓库根目录以初始化 Amplify 环境 + - name: Initialize Amplify Environment + run: amplify init --appId ${{ env.AMPLIFY_APP_ID }} --envName dev --region ${{ env.AWS_REGION }} --yes + - name: Deploy to Amplify env: AMPLIFY_APP_ID: ${{ env.AMPLIFY_APP_ID }}