Skip to content

Commit f1b69fc

Browse files
authored
Revert "Update publish-docs to use github tokens" (#511)
* Revert "Update publish-docs.yml (#504)" This reverts commit 353566c. * Use token for EG CI bot
1 parent b387839 commit f1b69fc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish-docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ jobs:
2626
run: |
2727
cd website
2828
npm install
29-
git config --global user.name "${GITHUB_ACTOR}"
30-
echo "machine github.com login ${GITHUB_ACTOR} password ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc
31-
GIT_USER="${GITHUB_ACTOR}" npm run publish-gh-pages
29+
git config --global user.name "${GH_USERNAME}"
30+
echo "machine github.com login ${GH_USERNAME} password ${{ secrets.EG_CI_USER_TOKEN }}" > ~/.netrc
31+
GIT_USER="${GH_USERNAME}" npm run publish-gh-pages
3232
env:
3333
CI: true
3434
CURRENT_BRANCH: master
35+
36+
# The following settings will only work with the personal access token we are using
37+
# Until GH Actions have a way to publish directly we are using this method
38+
GH_USERNAME: eg-oss-ci

0 commit comments

Comments
 (0)