Skip to content

Commit da6d549

Browse files
committed
config
1 parent 9d34724 commit da6d549

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-bundle-preview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ jobs:
8484
- name: Deploy to GitHub Pages
8585
if: success()
8686
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+
8790
git clone [email protected]:$GITHUB_REPOSITORY.git pages
8891
cd pages
8992
git checkout gh-pages
@@ -104,9 +107,6 @@ jobs:
104107
git config user.name 'github-actions[bot]'
105108
git config user.email 'github-actions[bot]@users.noreply.github.com'
106109
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/
110110
git push -u origin gh-pages
111111
112112
- name: Obtain GitHub Pages build URL

0 commit comments

Comments
 (0)