docs: Translate to korean (#1078) #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: deploy website | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install website dependencies | |
run: pnpm install | |
working-directory: ./website | |
- name: Build website | |
run: pnpm build | |
working-directory: ./website | |
- name: Make CNAME file | |
run: | | |
cd ./website/src/.vitepress/dist | |
echo "vue-chartjs.org" > CNAME | |
- name: Prepare build | |
run: | | |
cd ./website/src/.vitepress/dist | |
git init | |
git add -A | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit -m 'deploy' | |
- name: Push build | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
force: true | |
directory: ./website/src/.vitepress/dist |