Skip to content

Commit bcf30b0

Browse files
authored
docs: fix deploy again (#1132)
* fix deploy * add to path
1 parent 54a87d5 commit bcf30b0

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Diff for: .github/scripts/setup-ci-git-user.sh

+5-1
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

Diff for: .github/workflows/website-deployment.yml

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- main
66
paths:
77
- "packages/website/**"
8+
- ".github/workflows/website-deployment.yml"
89

910
jobs:
1011
deploy:
@@ -14,6 +15,8 @@ jobs:
1415
steps:
1516
- name: Checkout
1617
uses: actions/checkout@v4
18+
with:
19+
persist-credentials: "false"
1720
- name: Setup project
1821
uses: ./.github/actions/setup-project
1922
- name: Install dependencies
@@ -26,6 +29,7 @@ jobs:
2629
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
2730
GITHUB_NAME: ${{ vars.GH_BOT_NAME }}
2831
GITHUB_EMAIL: ${{ vars.GH_BOT_EMAIL }}
32+
GIT_SET_GLOBAL_USER: true
2933
- name: Deploy
3034
env:
3135
GIT_USER: ${{ vars.GH_BOT_NAME }}

Diff for: packages/website/README.md

+1
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)