Skip to content

Commit 4fa95c5

Browse files
committed
Update deploy workflow to set remote URL with GITHUB_TOKEN and pass it as env variable
1 parent 1f0850a commit 4fa95c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ 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:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
3536
yarn deploy
3637
env:
3738
GIT_USER: git
38-
DEPLOYMENT_BRANCH: gh-pages
39+
DEPLOYMENT_BRANCH: gh-pages
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)