Skip to content

Commit

Permalink
feat: update docs (#1)
Browse files Browse the repository at this point in the history
* feat: update ci

* fix: outputPath

* feat: update docs
  • Loading branch information
chenos authored Oct 30, 2023
1 parent 375c227 commit f73b4da
Show file tree
Hide file tree
Showing 217 changed files with 135 additions and 4,370 deletions.
2 changes: 1 addition & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineConfig({
alias: {
},
cacheDirectoryPath: `node_modules/.docs-${lang}-cache`,
outputPath: `./docs/dist/${lang}`,
outputPath: `./dist/${lang}`,
resolve: {
docDirs: [`./docs/${lang}`]
},
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/deploy-cn.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: scp files
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: yarn install
- name: Build en-US
env:
DOC_LANG: en-US
run: yarn build
- name: Build zh-CN
env:
DOC_LANG: zh-CN
run: yarn build
- name: copy files via ssh
uses: appleboy/[email protected]
with:
host: ${{ secrets.CN_HOST }}
username: ${{ secrets.CN_USERNAME }}
key: ${{ secrets.CN_KEY }}
port: ${{ secrets.CN_PORT }}
source: "dist/*"
target: ${{ secrets.CN_TARGET }}/${{ github.ref_name }}
- name: Push gh-pages
if: ${{ github.ref_name == 'main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/en-US
23 changes: 0 additions & 23 deletions .github/workflows/main.yml

This file was deleted.

Loading

0 comments on commit f73b4da

Please sign in to comment.