Skip to content

Commit

Permalink
Add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jdldeveloper committed Sep 7, 2024
1 parent 0d2c281 commit 8640ce6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy SAM Application

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'

- name: Setup SAM
uses: aws-actions/setup-sam@v2
with:
use-installer: true

- name: Configure Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2

- name: Sam Build
run: sam build --use-container

- name: Deploy SAM application
run: |
sam deploy --stack-name test-numpy --no-confirm-changeset --no-fail-on-empty-changeset

0 comments on commit 8640ce6

Please sign in to comment.