Skip to content

Commit 9d34724

Browse files
committed
credentials
1 parent 75f039b commit 9d34724

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ jobs:
1515
steps:
1616
- name: Checkout Repository
1717
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
2120

2221
- name: Setup Node.js
2322
uses: actions/setup-node@v4
@@ -105,6 +104,9 @@ jobs:
105104
git config user.name 'github-actions[bot]'
106105
git config user.email 'github-actions[bot]@users.noreply.github.com'
107106
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/
108110
git push -u origin gh-pages
109111
110112
- name: Obtain GitHub Pages build URL

0 commit comments

Comments
 (0)