File tree 2 files changed +34
-3
lines changed
2 files changed +34
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build-and-deploy :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v3
14
+
15
+ - name : Set up Node.js
16
+ uses : actions/setup-node@v3
17
+ with :
18
+ node-version : ' 18'
19
+
20
+ - name : Install dependencies
21
+ run : npm ci
22
+
23
+ - name : Build
24
+ run : npm run build
25
+
26
+ - name : Deploy to GitHub Pages
27
+ uses : peaceiris/actions-gh-pages@v3
28
+ with :
29
+ github_token : ${{ secrets.GITHUB_TOKEN }}
30
+ publish_dir : ./dist
Original file line number Diff line number Diff line change 1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
1
+ import { defineConfig } from 'vite' ;
2
+ import react from '@vitejs/plugin-react' ;
3
3
4
4
// https://vitejs.dev/config/
5
5
export default defineConfig ( {
6
6
plugins : [ react ( ) ] ,
7
- } )
7
+ base : '/markdown-formatter/' ,
8
+ } ) ;
You can’t perform that action at this time.
0 commit comments