Skip to content

Commit ce794ef

Browse files
wgtmackevinjqliu
andauthored
fix(ci): restore auth for docs gh-pages deploy (apache#625)
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
1 parent 8809e0f commit ce794ef

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ jobs:
6363
6464
- name: Deploy to gh-pages
6565
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
66+
env:
67+
GITHUB_TOKEN: ${{ github.token }}
6668
run: |
6769
git config --global user.name 'GitHub Actions'
6870
git config --global user.email 'actions@github.com'
71+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
6972
7073
git checkout --orphan gh-pages-tmp
7174
git rm --quiet -rf .

0 commit comments

Comments
 (0)