Skip to content

Merge pull request #1 from ktny/feature/sam #2

Merge pull request #1 from ktny/feature/sam

Merge pull request #1 from ktny/feature/sam #2

Workflow file for this run

name: SAM CI/CD Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
# https://docs.aws.amazon.com/ja_jp/serverless-application-model/latest/developerguide/deploying-using-github.html
# https://github.com/aws-actions/setup-sam
# https://github.com/aws-actions/configure-aws-credentials
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{secrets.IAM_ROLE_ARN}}
aws-region: ${{secrets.AWS_REGION}}
- run: sam build --use-container
- run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset