Added a special `build:github` script
This commit is contained in:
		
							parent
							
								
									72615bc4bd
								
							
						
					
					
						commit
						e9990ae9f7
					
				| 
						 | 
				
			
			@ -23,7 +23,7 @@ jobs:
 | 
			
		|||
          node-version: '18'
 | 
			
		||||
 | 
			
		||||
      - name: Build
 | 
			
		||||
        run: npm ci && npm run build
 | 
			
		||||
        run: npm ci && npm run bbuild:github
 | 
			
		||||
 | 
			
		||||
      - name: Deploy
 | 
			
		||||
        uses: peaceiris/actions-gh-pages@v3
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,8 @@
 | 
			
		|||
  "type": "module",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "dev": "vite",
 | 
			
		||||
    "build": "vite build --base=/chatgpt-web/",
 | 
			
		||||
    "build": "vite build",
 | 
			
		||||
    "build:github": "vite build --base=/chatgpt-web/",
 | 
			
		||||
    "preview": "vite preview",
 | 
			
		||||
    "check": "svelte-check --tsconfig ./tsconfig.json"
 | 
			
		||||
  },
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue