@@ -29,27 +29,13 @@ jobs:
2929 working-directory : code-generators/python_api_reference
3030 run : mkdocs build --clean
3131
32- - name : Zip site
33- working-directory : code-generators/python_api_reference/site
34- run : zip -r -s 45m "$GITHUB_WORKSPACE/Resources/python-api-reference/site.zip" .
35-
36- - name : Push ZIP to branch
37- run : |
38- BRANCH=github-action-python-api-reference
39- git config user.name "GitHub Actions"
40- git config user.email "[email protected] " 41-
42- # Create branch (or switch if it exists)
43- git checkout -b "$BRANCH" || git checkout "$BRANCH"
44-
45- # Add only the zip at the requested path inside the repo
46- git add -f Resources/python-api-reference/site.z*
47-
48- # If nothing changed, exit quietly
49- if git diff --cached --quiet; then
50- echo "No changes to commit."
51- exit 0
52- fi
53-
54- git commit -m "Update python-api-reference.zip"
55- git push --set-upstream origin "$BRANCH" -f
32+ - name : Configure AWS Credentials
33+ uses : aws-actions/configure-aws-credentials@v1
34+ with :
35+ aws-access-key-id : ${{ secrets.AWS_KEY }}
36+ aws-secret-access-key : ${{ secrets.AWS_SECRET }}
37+ aws-region : us-west-1
38+
39+ - name : Upload the site to S3
40+ working-directory : code-generators/python_api_reference
41+ run : aws s3 cp ./site s3://content.quantconnect.com/docs/v2/lean-engine/class-reference/py/ --recursive --acl bucket-owner-full-control
0 commit comments