generated from pascalmartineau/wp-skeleton
fix: don't use nuxt-hub/action
This commit is contained in:
@@ -5,10 +5,6 @@ on: [push]
|
|||||||
env:
|
env:
|
||||||
NUXT_PROJECT_PATH: wp-content/themes/ccat
|
NUXT_PROJECT_PATH: wp-content/themes/ccat
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-websimple
|
runs-on: ubuntu-websimple
|
||||||
@@ -24,9 +20,13 @@ jobs:
|
|||||||
working-directory: ${{ env.NUXT_PROJECT_PATH }}
|
working-directory: ${{ env.NUXT_PROJECT_PATH }}
|
||||||
run: pnpx nuxthub@latest ensure
|
run: pnpx nuxthub@latest ensure
|
||||||
|
|
||||||
- name: Build & Deploy to NuxtHub
|
- name: Build Nuxt project
|
||||||
uses: nuxt-hub/action@v2
|
working-directory: ${{ env.NUXT_PROJECT_PATH }}
|
||||||
with:
|
run: pnpm build
|
||||||
project-key: ${{ vars.NUXT_HUB_PROJECT_KEY }}
|
|
||||||
|
- name: Deploy to NuxtHub
|
||||||
|
working-directory: ${{ env.NUXT_PROJECT_PATH }}
|
||||||
env:
|
env:
|
||||||
|
NUXT_HUB_PROJECT_KEY: ${{ vars.NUXT_HUB_PROJECT_KEY }}
|
||||||
NUXT_HUB_USER_TOKEN: ${{ secrets.NUXT_HUB_USER_TOKEN }}
|
NUXT_HUB_USER_TOKEN: ${{ secrets.NUXT_HUB_USER_TOKEN }}
|
||||||
|
run: pnpx nuxthub@latest deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user