Need help for CI and CD in Github Workflow for Firebase Web App using HUGO Framework

Viewed 103

I'm using HUGO to build a website and connected it in Forestry.io for headless cms. Everything is in my GitHub repository.
I have this 2 files in workflows folder under .github folder: deploy.yml and integrate.yml
I always get this error:

13 Insufficient number of arguments or no entry found.
14 Alternatively, run 'webpack(-cli) --help' for usage info.

------deploy.yml and integrate.yml files------
name: Firebase Continuous Deployment

on:
  push:
    branches: [master]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - uses: actions/setup-node@master
        with:
          node-version: 10.16.0
      - run: npm ci
      - run: npm run build
      - uses: w9jds/firebase-action@master
        with:
          args: deploy --only hosting
        env:
          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
name: Node Continuous Integration

on:
  pull_request:
    branches: [master]

jobs:
  test_pull_request:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: 12
      - run: npm ci
      - run: npm test
      - run: npm run build
1 Answers

Double-check with the w9jds/firebase-action GitHub Action instructions:

  • the build job is suppose to execute the npm commands, not the deploy job
  • the deploy job is supposed to call Firebase (w9jds/firebase-action@master) with paths parameters

That is:

steps:
  - name: Checkout Repo
    uses: actions/checkout@master
  - name: Download Artifact
    uses: actions/download-artifact@master
    with:
      name: dist
      path: dist
Related