File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 15
15
steps :
16
16
- name : Checkout Repository
17
17
uses : actions/checkout@v4
18
-
19
- - name : Setup Credentials
20
- run : git config --global url.https://${{ secrets.DOCS_GITHUB_PAT }}@github.com/.insteadOf https://github.com/
18
+ with :
19
+ credentials : https://${{ secrets.DOCS_GITHUB_PAT }}@github.com
21
20
22
21
- name : Setup Node.js
23
22
uses : actions/setup-node@v4
@@ -105,6 +104,9 @@ jobs:
105
104
git config user.name 'github-actions[bot]'
106
105
git config user.email 'github-actions[bot]@users.noreply.github.com'
107
106
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/
108
110
git push -u origin gh-pages
109
111
110
112
- name : Obtain GitHub Pages build URL
You can’t perform that action at this time.
0 commit comments