Skip to content

Commit

Permalink
Fix workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
rowenslee committed Jun 28, 2024
1 parent d4883b7 commit 12fc3c3
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/nuxtjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 12fc3c3

Please sign in to comment.