Deploy to Firebase not working

Hey @halfer. Thank you for your help and sorry for my delayed response.

I’ve been trying to get it working with Workspaces but I haven’t had any luck. And it is a real pain to have to commit and push every change to the configuration file to test it on CircleCI.

Not sure if you guys could help me… I’m out of ideas, I’ve tried a lot of things…
This is how my config file looks right now:

witmy: &witmy
  docker:
    - image: circleci/node:7.10
    
version: 2
jobs:
  build:
    <<: *witmy
    steps:
      - checkout
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          - v1-dependencies-

      - run: yarn install

      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}

      - run:
          name: Build app in production mode
          command: |
            yarn build

      - persist_to_workspace:
          root: .
  deploy:
    <<: *witmy
    steps:
      - attach_workspace:
          at: .

      - run:
          name: Deploy Master to Firebase
          command: ./node_modules/.bin/firebase deploy --token=MY_TOKEN

workflows:
  version: 2
  build-and-deploy:
    jobs:
      - build
      - deploy:
          requires:
            - build
          filters:
            branches:
              only: master

Right now I’m getting this error on CircleCI:

Persisting to Workspace
The specified paths did not match any files in /home/circleci/project

Cheers!

1 Like