generated from pascalmartineau/wp-skeleton
fix: deploy-nuxthub
This commit is contained in:
@@ -2,6 +2,9 @@ name: NuxtHub deployment
|
||||
run-name: ${{ gitea.actor }} deploying ${{ gitea.repository.name }}
|
||||
on: [push]
|
||||
|
||||
env:
|
||||
NUXT_PROJECT_PATH: wp-content/themes/ccat
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-websimple
|
||||
@@ -10,14 +13,16 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: wp-content/themes/ccat
|
||||
working-directory: ${{ env.NUXT_PROJECT_PATH }}
|
||||
run: pnpm install
|
||||
|
||||
- name: Ensure NuxtHub module is installed
|
||||
working-directory: wp-content/themes/ccat
|
||||
working-directory: ${{ env.NUXT_PROJECT_PATH }}
|
||||
run: pnpx nuxthub@latest ensure
|
||||
|
||||
- name: Build & Deploy to NuxtHub
|
||||
uses: nuxt-hub/action@v2
|
||||
with:
|
||||
project-key: cultureat-ca-vmym
|
||||
project-key: ${{ vars.NUXT_HUB_PROJECT_KEY }}
|
||||
env:
|
||||
NUXT_HUB_USER_TOKEN: ${{ secrets.NUXT_HUB_USER_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user