Skip to content

Commit 0717077

Browse files
authored
Merge pull request #244 from r-devel/workflow/docs
try setting GH PAT in credential.helper store
2 parents f14727e + 2113cb7 commit 0717077

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-mkdocs-website.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: ["main","devel"]
77
types: [closed]
88
paths:
9-
- 'build-mkdocs-website.yml'
9+
- '.github/workflows/build-mkdocs-website.yml'
1010
- 'docs/**/**'
1111
- 'mkdocs.yml'
1212

@@ -65,5 +65,7 @@ jobs:
6565
run: |
6666
echo "Deploying from branch: ${{ github.ref_name }}"
6767
echo "Commit: ${{ github.sha }}"
68-
git remote set-url origin https://x-access-token:${GH_PAT}@github.com/${{ steps.config.outputs.target_repo }}
68+
git config --global credential.helper store
69+
echo "https://x-access-token:${GH_PAT}@github.com" > ~/.git-credentials
70+
git remote set-url origin https://github.com/${{ steps.config.outputs.target_repo }}
6971
mkdocs gh-deploy --config-file mkdocs.yml --remote-branch gh-pages --force

0 commit comments

Comments
 (0)