File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 84
84
- name : Deploy to GitHub Pages
85
85
if : success()
86
86
run : |
87
+ # Configure git to use the PAT for cloning and pushing to the gh-pages branch
88
+ git config --global url.https://${{ secrets.DOCS_GITHUB_PAT }}@github.com/.insteadOf https://github.com/
89
+
87
90
git clone [email protected] :$GITHUB_REPOSITORY.git pages
88
91
cd pages
89
92
git checkout gh-pages
@@ -104,9 +107,6 @@ jobs:
104
107
git config user.name 'github-actions[bot]'
105
108
git config user.email 'github-actions[bot]@users.noreply.github.com'
106
109
git commit --allow-empty -m "Auto-deployed from GitHub Actions"
107
-
108
- # Configure git to use the PAT for pushing to the gh-pages branch
109
- git config --global url.https://${{ secrets.DOCS_GITHUB_PAT }}@github.com/.insteadOf https://github.com/
110
110
git push -u origin gh-pages
111
111
112
112
- name : Obtain GitHub Pages build URL
You can’t perform that action at this time.
0 commit comments