diff --git a/.gitea/workflows/deploy-to-s3.yml b/.gitea/workflows/deploy-to-s3.yml index 2075ddc..db7c2c9 100644 --- a/.gitea/workflows/deploy-to-s3.yml +++ b/.gitea/workflows/deploy-to-s3.yml @@ -46,43 +46,4 @@ jobs: AWS_DEFAULT_REGION: us-east-1 run: | echo "Uploading repo contents to S3..." - aws s3 cp utopia-ai-finance-accounts.zip s3://utopia-ai-s3-repo-bucket/utopia-ai-finance-accounts.zip - - - - -version: 0.2 - -phases: - install: - runtime-versions: - python: 3.11 # better than java for Python project; change version if needed - commands: - - echo "Downloading previous bundle if needed..." - - aws s3 cp s3://utopia-ai-s3-repo-bucket/utopia-ai-finance-accounts.zip . - - build: - commands: - - echo "Extracting app.zip to current directory (flat)..." - - unzip -o utopia-ai-finance-accounts.zip || echo "No app.zip found or unzip failed - assuming files already present" - - echo "Downloading deployment files..." - - aws s3 cp s3://utopia-ai-s3-bucket/utopia-ai-finance-accounts-artifact-folder/appspec.yml . - - aws s3 cp s3://utopia-ai-s3-bucket/utopia-ai-finance-accounts-artifact-folder/deploy_utopia-ai-finance-accounts.sh . - - chmod +x *.sh - - ls -la # debug: verify appspec.yml, deploy_ai.sh and Python files are now at root - - post_build: - commands: - - echo "Creating deployment bundle..." - - zip -r utopia-ai-finance-accounts.zip . -x "*.zip" - - echo "Uploading final deployment bundle to S3..." - - aws s3 cp utopia-ai-finance-accounts.zip s3://utopia-ai-s3-bucket/utopia-ai-finance-accounts-artifact-folder/utopia-ai-finance-accounts.zip - - aws s3 cp utopia-ai-finance-accounts.zip s3://utopia-ai-fba-pipeline-east2/utopia-ai-finance-accounts.zip --region us-east-2 - -artifacts: - files: - - '**/*' # everything at root goes into artifact ZIP - discard-paths: no - - - + aws s3 cp utopia-ai-finance-accounts.zip s3://utopia-ai-s3-repo-bucket/utopia-ai-finance-accounts.zip \ No newline at end of file