Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vighnesh-wednesday committed Nov 30, 2023
2 parents 2024188 + fa74492 commit f5e4916
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,11 @@ jobs:
with:
args: --follow-symlinks
env:
SOURCE_DIR: "./main.py"
SOURCE_DIR: "dist"
DEST_DIR: $S3_SCRIPTS_PATH
AWS_S3_BUCKET: $S3_BUCKET_NAME

- name: Copy script to S3 bucket
uses: jakejarvis/[email protected]
with:
args: --follow-symlinks
env:
SOURCE_DIR: "dist/app-0.9-py3-none-any.whl"
DEST_DIR: $S3_SCRIPTS_PATH
AWS_S3_BUCKET: $S3_BUCKET_NAME

- name: Upload Script file to S3
run: aws s3 cp ./main.py "s3://$S3_BUCKET_NAME/$S3_SCRIPTS_PATH/" --region ap-south-1

1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

# initiating glue spark
try:
print("Setting up params...")
args = getResolvedOptions(sys.argv, ['JOB_NAME', 'KAGGLE_USERNAME', 'KAGGLE_KEY', 'FLAG'])
except Exception as e:
print(f"ERROR: {e}")
Expand Down

0 comments on commit f5e4916

Please sign in to comment.