Skip to content

Commit

Permalink
docs: fix deploy again (#1132)
Browse files Browse the repository at this point in the history
* fix deploy

* add to path
  • Loading branch information
krizzu authored Jul 22, 2024
1 parent 54a87d5 commit bcf30b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/scripts/setup-ci-git-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions .github/workflows/website-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- main
paths:
- "packages/website/**"
- ".github/workflows/website-deployment.yml"

jobs:
deploy:
Expand All @@ -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
Expand All @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions packages/website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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


## Development

### Installation
Expand Down

0 comments on commit bcf30b0

Please sign in to comment.