diff --git a/.github/workflows/nuxtjs.yml b/.github/workflows/nuxtjs.yml index e447548..33e7bd0 100644 --- a/.github/workflows/nuxtjs.yml +++ b/.github/workflows/nuxtjs.yml @@ -18,11 +18,10 @@ permissions: pages: write id-token: write -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +# Allow one concurrent deployment concurrency: group: "pages" - cancel-in-progress: false + cancel-in-progress: true jobs: # Build job @@ -51,14 +50,6 @@ jobs: with: node-version: "16" cache: ${{ steps.detect-package-manager.outputs.manager }} - - name: Setup Pages - uses: actions/configure-pages@v3 - 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 with: @@ -72,6 +63,8 @@ jobs: run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - name: Static HTML export with Nuxt run: ${{ steps.detect-package-manager.outputs.manager }} run generate + env: + NODE_ENV: ${{ vars.NODE_ENV }} - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: