Skip to content

Commit

Permalink
chore: update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Nov 3, 2024
1 parent e5c7674 commit 50715f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,20 @@ jobs:
node-version: '18'
cache: 'npm'

- name: Enable NPM Debugging
run: echo "export DEBUG=npm:*" >> $GITHUB_ENV

- name: Update npm
run: npm install -g npm@latest

- name: Clear npm cache
run: npm cache clean --force

- name: Install Dependencies
run: npm ci --loglevel verbose
run: npm ci

- name: Build
run: npm run build
env:
NEXT_PUBLIC_BASE_PATH: '/git-spotlight' # Add if your repo name is git-spotlight

- name: Add .nojekyll file
run: touch ./out/.nojekyll

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: out
branch: gh-pages
clean: true # Automatically remove deleted files from the deploy branch
3 changes: 1 addition & 2 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
basePath: '/git-spotlight', // Should match your repository name
images: {
unoptimized: true,
},
basePath: '',
trailingSlash: true,
}

module.exports = nextConfig
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"start": "next start",
"lint": "next lint",
"export": "next build && next export",
"deploy": "npm run build && touch out/.nojekyll"
"deploy": "npm run build && touch out/.nojekyll",
"serve": "npx serve out"
},
"dependencies": {
"class-variance-authority": "^0.7.0",
Expand Down

0 comments on commit 50715f7

Please sign in to comment.