Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
NickLiffen authored Jan 2, 2024
1 parent be3cd20 commit 544f2e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,10 @@ jobs:
npm cache clean --force
npm install
npm run build
- name: Extract branch name
id: extract_branch
shell: bash
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
- run: sam build --use-container
- run: sam deploy --debug --no-confirm-changeset --no-fail-on-empty-changeset --stack-name codeScanning --capabilities CAPABILITY_IAM --region ${{ env.REGION }} --resolve-s3
- run: sam deploy --debug --no-confirm-changeset --no-fail-on-empty-changeset --stack-name codeScanning-${{ steps.extract_branch.outputs.branch }} --capabilities CAPABILITY_IAM --region ${{ env.REGION }} --resolve-s3

0 comments on commit 544f2e4

Please sign in to comment.