Skip to content

Commit

Permalink
Commit msg
Browse files Browse the repository at this point in the history
  • Loading branch information
AniketDhemare committed Apr 2, 2024
1 parent 8740b47 commit b3c62ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ name: Python Proj

on:
push:
# pull_request:
# types: [closed]

# permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
# pull_request:

jobs:
build-and-deploy:
Expand All @@ -20,16 +14,14 @@ jobs:
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v3
with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key-id: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
role-to-assume: arn:aws:iam::339712864263:role/github-to-s3
aws-region: ap-south-1
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key-id: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Deploy code to S3 bucket
run: aws s3 sync . s3://aniketbucket3 --delete
run: aws s3 sync . s3://aniketbucket3/Python-Proj --delete

# - name: Run Script to run python file
# run:

# - name:

2 changes: 1 addition & 1 deletion .github/workflows/main-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
run: aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} && aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }} && aws configure set region ${{ secrets.AWS_REGION }}

- name: Sync files to S3
run: aws s3 sync . s3://aniketbucket3 --delete
run: aws s3 sync . s3://aniketbucket3/Proj-B --delete

0 comments on commit b3c62ad

Please sign in to comment.