From a6f32e69ba4018021b54f4eea928971469a074df Mon Sep 17 00:00:00 2001 From: Vivek Miglani Date: Fri, 20 Oct 2023 14:17:47 -0700 Subject: [PATCH] Use github token --- .github/workflows/test-website-depoy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-website-depoy.yml b/.github/workflows/test-website-depoy.yml index 25b6d3eb66..ac54b5a22a 100644 --- a/.github/workflows/test-website-depoy.yml +++ b/.github/workflows/test-website-depoy.yml @@ -24,8 +24,10 @@ jobs: ./scripts/install_via_pip.sh -n -d git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "Captum website deployment script" + export GITHUB_TOKEN="${SECRET_GITHUB_TOKEN}" + echo $GITHUB_TOKEN echo "machine github.com login github-actions password ${SECRET_GITHUB_TOKEN}" > ~/.netrc ./scripts/build_docs.sh -b cd website - GIT_USER=github-actions yarn run publish-gh-pages + GIT_USER=github-actions USE_SSH=true yarn run publish-gh-pages