From 5c0ee333ff1ae11cc6a4121e582e230e799f522d Mon Sep 17 00:00:00 2001 From: Noritaka IZUMI Date: Wed, 23 Oct 2024 22:29:33 +0900 Subject: [PATCH] ci: wip - add GitHub Actions deploy-to-amplify config --- .github/workflows/build-docs.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 924fe04..f9dbcf8 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -59,7 +59,9 @@ jobs: env: AWS_REGION: 'us-east-1' BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - needs: [ build, test ] + needs: + - build + - test runs-on: ubuntu-latest steps: - name: Download artifacts @@ -74,5 +76,8 @@ jobs: aws-region: ${{ env.AWS_REGION }} role-duration-seconds: 900 + - name: Upload artifact to S3 + run: aws s3api put-object --bucket ${{ secrets.AWS_S3_BUCKET }} --key ${{ env.ARTIFACT }} --body ${{ env.ARTIFACT }} + # - name: Deploy artifact to Amplify # run: aws amplify start-deployment --app-id ${{ secrets.AMPLIFY_APP_ID }} --branch-name ${{ env.BRANCH_NAME }} --source-url $SOURCE_URL