Skip to content

Commit 2c757bf

Browse files
committed
fix deploy
1 parent 54a87d5 commit 2c757bf

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/scripts/setup-ci-git-user.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ git config user.name "$GITHUB_NAME"
1616
git config user.email "$GITHUB_EMAIL"
1717
echo "machine github.com login $GITHUB_NAME password $GITHUB_TOKEN" > "$HOME/.netrc"
1818

19-
19+
if [ "$GIT_SET_GLOBAL_USER" = "true" ]
20+
then
21+
git config --global user.name "$GITHUB_NAME"
22+
git config --global user.email "$GITHUB_EMAIL"
23+
fi

.github/workflows/website-deployment.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17+
with:
18+
persist-credentials: "false"
1719
- name: Setup project
1820
uses: ./.github/actions/setup-project
1921
- name: Install dependencies
@@ -26,6 +28,7 @@ jobs:
2628
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
2729
GITHUB_NAME: ${{ vars.GH_BOT_NAME }}
2830
GITHUB_EMAIL: ${{ vars.GH_BOT_EMAIL }}
31+
GIT_SET_GLOBAL_USER: true
2932
- name: Deploy
3033
env:
3134
GIT_USER: ${{ vars.GH_BOT_NAME }}

packages/website/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Built using [Docusaurus 2](https://v2.docusaurus.io/).
44

5+
56
## Development
67

78
### Installation

0 commit comments

Comments
 (0)