Skip to content

Commit aeb09bb

Browse files
author
Top-5
committed
Add GitHub token authentication for gh-pages
1 parent 434d0a5 commit aeb09bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
run: |
3333
git config --global user.name 'github-actions[bot]'
3434
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
35+
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
3536
npx gh-pages -d dist
3637
env:
3738
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)