Skip to content

Commit

Permalink
Merge pull request #1 from raar1/main
Browse files Browse the repository at this point in the history
Fix nuxt3/vue site generation and deployment on ghpages
  • Loading branch information
raar1 authored Sep 8, 2023
2 parents cc583f5 + ab3a825 commit 1900bc6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
cd:
build_and_deploy:
runs-on: ubuntu-latest

permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -22,10 +25,16 @@ jobs:
run: npm ci

- name: Generate
run: npm run build

run: npx nuxi generate
- name: Check generated contents
run: |
pwd
ls -la
cd .output/public
pwd
ls -la
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.output/server
publish_dir: ./.output/public
10 changes: 9 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@ export default defineNuxtConfig({
content: {
// https://content.nuxtjs.org/api/configuration
},
ssr: false
app: {
baseURL: '/NEBULA/'
},
generate:{
nojekyll: true,
fallback: '404.html'
},
ssr: true,
target: "static"
})

0 comments on commit 1900bc6

Please sign in to comment.