diff --git a/.github/scripts/setup-ci-git-user.sh b/.github/scripts/setup-ci-git-user.sh index 77c87854..eb7a856a 100755 --- a/.github/scripts/setup-ci-git-user.sh +++ b/.github/scripts/setup-ci-git-user.sh @@ -16,4 +16,8 @@ git config user.name "$GITHUB_NAME" git config user.email "$GITHUB_EMAIL" echo "machine github.com login $GITHUB_NAME password $GITHUB_TOKEN" > "$HOME/.netrc" - +if [ "$GIT_SET_GLOBAL_USER" = "true" ] +then + git config --global user.name "$GITHUB_NAME" + git config --global user.email "$GITHUB_EMAIL" +fi diff --git a/.github/workflows/website-deployment.yml b/.github/workflows/website-deployment.yml index f25ebcba..8bc714a9 100644 --- a/.github/workflows/website-deployment.yml +++ b/.github/workflows/website-deployment.yml @@ -5,6 +5,7 @@ on: - main paths: - "packages/website/**" + - ".github/workflows/website-deployment.yml" jobs: deploy: @@ -14,6 +15,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + persist-credentials: "false" - name: Setup project uses: ./.github/actions/setup-project - name: Install dependencies @@ -26,6 +29,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} GITHUB_NAME: ${{ vars.GH_BOT_NAME }} GITHUB_EMAIL: ${{ vars.GH_BOT_EMAIL }} + GIT_SET_GLOBAL_USER: true - name: Deploy env: GIT_USER: ${{ vars.GH_BOT_NAME }} diff --git a/packages/website/README.md b/packages/website/README.md index 4bea35e3..6729767f 100644 --- a/packages/website/README.md +++ b/packages/website/README.md @@ -2,6 +2,7 @@ Built using [Docusaurus 2](https://v2.docusaurus.io/). + ## Development ### Installation