Added deploy to AWS in build job
Some checks failed
AWS Deploy on Push / build (push) Failing after 1m23s

This commit is contained in:
2025-05-14 20:10:20 -05:00
parent 147f40265a
commit c039617971

View File

@@ -13,7 +13,7 @@ jobs:
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
@@ -21,4 +21,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "22.15"
- name: Install Python dependencies and CDK
run: |
python -m pip install --upgrade pip
# install your Python dependencies here
npm install -g aws-cdk
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: "us-east-2"
- name: Deploy to AWS
run: cdk deploy --app="python3 ${PWD}/app.py" --require-approval=never
- run: echo "This job's status is ${{ job.status }}."