Skip to content

Commit

Permalink
fix: use nuxt github_pages preset
Browse files Browse the repository at this point in the history
  • Loading branch information
sasarafu committed Aug 11, 2024
1 parent ec2ce0a commit 9b79aa5
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/deploy-dev-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,17 @@ jobs:
- name: checkout
uses: actions/checkout@v4

- run: corepack enable

- name: setup nodejs
uses: actions/setup-node@v4
with:
node-version: "20"
cache: 'npm'

- name: Setup Pages
uses: actions/configure-pages@v5
with:
static_site_generator: nuxt

- name: restore cache
uses: actions/cache@v4
with:
path: |
dist
.nuxt
key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }}
restore-keys: |
${{ runner.os }}-nuxt-build-
- name: install dependencies
run: npm ci
- run: npm ci

- name: generate static files
run: npm run generate
- run: npx nuxt build --preset github_pages

- name: upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit 9b79aa5

Please sign in to comment.