Home > Mobile >  Error deploying a nextJS app on github actions
Error deploying a nextJS app on github actions

Time:04-30

I'm trying to deploy my nextJS app on GitHub pages. I'm getting an error at the deploy stage.

My node.js.yml file contains the following:

name: Node.js CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [14.x]

    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}
          cache: "npm"
      - run: npm ci
      - run: npm run build
      - run: npm run export
      - run: touch ./out/.nojekyll

      - name: Deploy            
  • Related