Travis CI can automatically deploy your application to Firebase application after a successful build.
deploy: provider: firebase token: secure: "YOUR ENCRYPTED token"
Generating your Firebase token
Generate your Firebase after installing the Firebase tools by running:
Remember to encrypt the token before adding it to your
Deploying to a custom project
To deploy to a different project than the one specified in the
firebase.json, use the
project key in your
deploy: provider: firebase token: secure: "YOUR ENCRYPTED token" project: "myapp-staging"
Running commands before and after deploy
Sometimes you want to run commands before or after deploying. You can use
after_deploy stages for this. These will only be
triggered if Travis CI is actually deploying.
before_deploy: "echo 'ready?'" deploy: .. after_deploy: - ./after_deploy_1.sh - ./after_deploy_2.sh