File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 11name : Push Docs
22description : Push Docs to Heroku
33inputs :
4- heroku-api-token :
5- description : API token for Heroku
6- required : true
7- heroku-app-name :
8- description : App name
9- required : true
104 commit_user_name :
115 description : Name used for the commit user
126 required : false
1913 using : " composite"
2014 steps :
2115 - run : |
22- git checkout -b inv-push-docs
2316 git add docs/examples/vendor/*.py -f
2417 git -c user.name="${{ inputs.commit_user_name }}" -c user.email="${{ inputs.commit_user_email }}" commit -m "Add examples" --allow-empty
25- git subtree split --prefix docs -b inv-push-docs-subtree
26- git push -f https://heroku:${{ inputs.heroku-api-token }}@git.heroku.com/${{ inputs.heroku-app-name }}.git inv-push-docs-subtree:master
27- git checkout master
28- git branch -D inv-push-docs inv-push-docs-subtree
18+ git subtree split --prefix docs -b docs-deploy
19+ git push -f origin docs-deploy
2920 shell: bash
Original file line number Diff line number Diff line change 77 paths :
88 - docs/**
99 - examples/**
10+ - .github/workflows/build-docs.yml
11+ - .github/actions/push_docs/**
1012
1113jobs :
1214 build_docs :
2224 run : python -m pip install invoke semver termcolor
2325 - name : Copy examples to docs/
2426 run : invoke copy-examples
25- - uses : ./.github/actions/push_docs
26- with :
27- heroku-api-token : ${{ secrets.HEROKU_API_TOKEN }}
28- heroku-app-name : ${{ secrets.HEROKU_APP_NAME }}
27+ - name : Push docs
28+ uses : ./.github/actions/push_docs
You can’t perform that action at this time.
0 commit comments