GitHub actions #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Proj | |
on: | |
push: | |
branches: | |
-main | |
pull_request: | |
types: [closed] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure AWS | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
aws-acccess-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key-id: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }} | |
aws-region: ap-south-1 | |
- name: Deploy code to S3 bucket | |
run: aws s3 sync . s3://aniketbucket3 --delete | |
# - name: Run Script to run python file | |
# run: | |
# - name: | |