Skip to content

Commit

Permalink
gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Xutaotaotao committed Apr 29, 2024
1 parent 25849ff commit ab8503a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,22 @@ jobs:
uses: actions/configure-pages@v3
- name: Install dependencies
run: yarn install # or pnpm install / yarn install
- name: deploy
- name: Build
run: yarn build # or pnpm docs:build / yarn docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 0 additions & 3 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { defineConfig } from 'umi';

export default defineConfig({
plugins:[
'umi-plugin-gh-pages',
],
base: '/XTools/',
publicPath: '/XTools/',
});
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"build": "umi build",
"postinstall": "umi setup",
"setup": "umi setup",
"start": "npm run dev",
"deploy": "yarn run build && gh-pages -d dist"
"start": "npm run dev"
},
"dependencies": {
"umi": "^4.1.10",
Expand Down

0 comments on commit ab8503a

Please sign in to comment.