Skip to content

Commit

Permalink
ci: add nuxthub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxthub-admin[bot] authored Dec 27, 2024
1 parent 9416973 commit f3deda1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/nuxthub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: "Deploy to NuxtHub"
runs-on: ubuntu-latest
environment:
name: ${{ github.ref == 'refs/heads/refactor-nuxt' && 'production' || 'preview' }}
name: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
url: ${{ steps.deploy.outputs.deployment-url }}
permissions:
contents: read
Expand All @@ -15,20 +15,22 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
run: npm install
run: pnpm install

- name: Build application
run: npm run build
run: pnpm build

- name: Deploy to NuxtHub
uses: nuxt-hub/action@v1
Expand Down

0 comments on commit f3deda1

Please sign in to comment.