Skip to content

Commit

Permalink
ci: wip - 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 32da43d commit 5c0ee33
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 5c0ee33

Please sign in to comment.