diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8597d57c..60a832db 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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 \ No newline at end of file + publish_dir: ./.output/public diff --git a/nuxt.config.ts b/nuxt.config.ts index c0ab23e2..dd0da9c6 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -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" })