Skip to content

Commit

Permalink
Reset build and try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaan-Samar committed Nov 5, 2024
1 parent 121827c commit 02b2b75
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,32 @@ name: Deploy to GitHub Pages
on:
push:
branches:
- main
- main # or your default branch name

permissions:
contents: write

jobs:
deploy:
timeout-minutes: 15
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
node-version: '18' # or your preferred version

- name: Install dependencies
run: npm ci
- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

- name: Deploy to GitHub Pages
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
folder: dist # The folder the action will deploy from
branch: gh-pages
clean: true
clean: true # Automatically remove deleted files from the deployment
17 changes: 15 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
base: '/chinese-writing-assistant/', // Replace with your repository name
base: '/chinese-writing-assistant/',
build: {
outDir: 'dist',
assetsDir: 'assets',
// Ensure clean builds
emptyOutDir: true,
// Add source maps for better debugging
sourcemap: true,
// Increase build timeout
timeout: 120000,
},
server: {
port: 3000,
open: true,
},
})

0 comments on commit 02b2b75

Please sign in to comment.