Skip to content

Commit

Permalink
fix(ci): use github pages preset
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosugamea committed Jan 18, 2024
1 parent 8526e03 commit 345ca34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nuxtjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ jobs:
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Static HTML export with Nuxt
run: pnpm generate
run: pnpm generate --preset=github_pages
env:
NITRO_PRESET: github_pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
path: ./.output/public

# Deployment job
deploy:
Expand Down
2 changes: 0 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ export default defineNuxtConfig({
},
devtools: { enabled: true },
app: {
cdnURL: import.meta.env.GITHUB_ACTIONS ? '/recreate-news/' : undefined, // baseURL: '/<repository>/'
buildAssetsDir: 'assets',
head: {
title: 'Sparkle News',
titleTemplate: '%s - Sparkle News',
Expand Down

0 comments on commit 345ca34

Please sign in to comment.