Skip to content

Commit

Permalink
ci: add GitHub Actions deploy-to-amplify config
Browse files Browse the repository at this point in the history
  • Loading branch information
noritakaIzumi committed Oct 23, 2024
1 parent 5c0ee33 commit 207e147
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,10 @@ jobs:
- 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
- name: Deploy artifact to Amplify
run: |
aws amplify start-deployment \
--app-id ${{ secrets.AMPLIFY_APP_ID }} \
--branch-name ${{ env.BRANCH_NAME }} \
--source-url s3://${{ secrets.AWS_S3_BUCKET }}/${{ env.ARTIFACT }} \
--source-url-type BUCKET_PREFIX

0 comments on commit 207e147

Please sign in to comment.