Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
 remove cdp

foo
  • Loading branch information
posix4e committed Mar 1, 2024
1 parent 5cef17f commit 77e8194
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cdp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: AWS Service CI/CD

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "16"
- 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_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: "us-east-1"
- name: Deploy to AWS
run: cdk deploy --require-approval=never

0 comments on commit 77e8194

Please sign in to comment.