diff --git a/.gitea/workflows/deploy-nuxthub.yaml b/.gitea/workflows/deploy-nuxthub.yaml new file mode 100644 index 0000000..a3e845b --- /dev/null +++ b/.gitea/workflows/deploy-nuxthub.yaml @@ -0,0 +1,32 @@ +name: NuxtHub deployment +run-name: ${{ gitea.actor }} deploying ${{ gitea.repository.name }} +on: [push] + +jobs: + deploy: + runs-on: ubuntu-websimple + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'pnpm' + + - name: Install dependencies + working-directory: wp-content/themes/ccat + run: pnpm install + + - name: Ensure NuxtHub module is installed + working-directory: wp-content/themes/ccat + run: pnpx nuxthub@latest ensure + + - name: Build & Deploy to NuxtHub + uses: nuxt-hub/action@v2 + with: + project-key: cultureat-ca-vmym