Skip to content

Commit

Permalink
Push PDF to New Branch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCatarino committed Nov 10, 2023
1 parent 461b503 commit 229fdc6
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/html_generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,12 @@ jobs:
aws s3 cp ./single-page s3://${{ secrets.AWS_BUCKET }} --acl bucket-owner-full-control --exclude "*" --include "*.html" --content-type "text/html"
aws s3 cp ./single-page s3://${{ secrets.AWS_BUCKET }} --acl bucket-owner-full-control --exclude "*" --include "*.pdf" --content-type "application/pdf"
# - name: Push to Branch
# run: |-
# if [[ $(git diff | wc -m) == 0 ]]; then
# exit 0
# fi
# BRANCH=github-action-single-page-doc-generator
# git config user.name GitHub Actions
# git config user.email [email protected]
# git checkout -b $BRANCH
# git add .
# git commit -m "Code generated by SinglePageDocGenerator.py"
# git push --set-upstream origin $BRANCH -f
- name: Push to Branch
run: |-
BRANCH=github-action-single-page-doc-generator
git config user.name GitHub Actions
git config user.email [email protected]
git checkout -b $BRANCH
git add single-page/*.pdf
git commit -m "Code generated by SinglePageDocGenerator.py"
git push --set-upstream origin $BRANCH -f

0 comments on commit 229fdc6

Please sign in to comment.