Firebase deploy doesn't see my folder

I’m completely new to GitHub Actions and CI in general so I realise it might be a really trivial question.

Every time the ation builds fine and then crashes at deploy to firebase.

Deploy to Firebase3s
Error: Specified public directory 'dist/TestCI' does not exist, can't deploy hosting to site ci-test-5705e
Run w9jds/firebase-action@master
/usr/bin/docker run --name c1a2cf98151a2fb4a918419d4caa8f1d713_bdbdad --label 430c1a --workdir /github/workspace --rm -e FIREBASE_TOKEN -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_URL -e GITHUB_API_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/CITests/CITests":"/github/workspace" 430c1a:2cf98151a2fb4a918419d4caa8f1d713 deploy --only hosting

=== Deploying to 'ci-test-5705e'...

i deploying hosting

Error: Specified public directory 'dist/TestCI' does not exist, can't deploy hosting to site ci-test-5705e

This is my code:

name: Build and Deploy
on:
  push:

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@master
      - name: Install Dependencies
        run: npm install
      - name: Build
        run: npm run build --prod
      - name: Archive Production Artifact
        uses: actions/upload-artifact@master
        with:
          name: dist
          path: dist
  deploy:
    name: Deploy
    needs: build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@master
      - name: Download Artifact
        uses: actions/download-artifact@master
        with:
          name: dist
      - name: Deploy to Firebase
        uses: w9jds/firebase-action@master
        with:
          args: deploy --only hosting
        env:
          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

Hi @micharzu ,

Please add ‘path: dist’ for ‘actions/download-artifact’. Code sample as below:

- name: Download Artifact
        uses: actions/download-artifact@master
        with:
          name: dist
          path: dist

I checked the file list after your download artifacts step, without path specified, there is no ‘dist/TestCI’ folder but directly ‘TestCI’ folder, which caused the deploy action cannot find the ‘dist/TestCI’ folder.

Thanks.