From 6906cec295774d530c0bd7ca97379593212f7aa0 Mon Sep 17 00:00:00 2001 From: Dosugamea Date: Fri, 19 Jan 2024 00:49:21 +0900 Subject: [PATCH] fix(ci): Update nuxtjs.yml why it makes empty pages??? --- .github/workflows/nuxtjs.yml | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/nuxtjs.yml b/.github/workflows/nuxtjs.yml index 85da425..65501a1 100644 --- a/.github/workflows/nuxtjs.yml +++ b/.github/workflows/nuxtjs.yml @@ -31,34 +31,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - uses: pnpm/action-setup@v2 + - name: Setup Pages + uses: actions/configure-pages@v4 with: - version: 8.14.0 + static_site_generator: nuxt - name: Setup Node uses: actions/setup-node@v4 with: node-version: "20" - - name: Setup Pages - uses: actions/configure-pages@v4 - with: - # Automatically inject router.base in your Nuxt configuration file and set - # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: nuxt - - name: Restore cache - uses: actions/cache@v3 + - name: Setup pnpm + uses: pnpm/action-setup@v2 with: - path: | - dist - .nuxt - key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }} - restore-keys: | - ${{ runner.os }}-nuxt-build- + version: 8.14.0 - name: Install dependencies run: pnpm i --frozen-lockfile - name: Static HTML export with Nuxt - run: pnpm run generate + run: pnpm generate - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: