Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ductinhkx97 committed Sep 21, 2024
1 parent 848b176 commit bdf26ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy Documentation
on:
push:
branches:
- master # Change this to your default branch (e.g., 'master')
- master # Change this to your default branch (e.g., 'master')

jobs:
build-deploy:
Expand All @@ -19,19 +19,19 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Use your preferred Node.js version
node-version: '20' # Use your preferred Node.js version

# Install dependencies
- name: Install dependencies
run: yarn install

# Build the documentation
- name: Build docs
run: yarn build-docs # Replace with your docs build command (e.g., vite-pages or vite build)
run: yarn build-docs # Replace with your docs build command (e.g., vite-pages or vite build)

# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./docs/dist # Change to the directory where your docs are built
publish_dir: ./docs/dist # Change to the directory where your docs are built
1 change: 1 addition & 0 deletions docs/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default defineConfig(() => {
pagesDir: path.join(__dirname, 'pages'),
}),
],
base: process.env.NODE_ENV === 'production' ? 'dnd-tree-sortable' : 'dnd-tree-sortable/docs/dist',
resolve: {
alias: {
'dnd-tree-sortable': path.join(__dirname, '../lib'),
Expand Down

0 comments on commit bdf26ff

Please sign in to comment.