Skip to content

Commit

Permalink
Update deploying-static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DevAnsar committed Jan 4, 2024
1 parent 09a01b2 commit 79b2bbd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 63 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/deploying-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,9 @@ jobs:
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload dist repository
path: './dist'
run: npm run build --prefix docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.CODECOV_TOKEN }}
publish_dir: docs/dist
51 changes: 0 additions & 51 deletions .github/workflows/main

This file was deleted.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://devansar.github.io/react-search-hook/docs",
"homepage": "https://devansar.github.io/react-search-hook/",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down
2 changes: 1 addition & 1 deletion docs/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: '/react-search-hook/docs',
base: '/react-search-hook/',
})

0 comments on commit 79b2bbd

Please sign in to comment.