Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: Deploy to Firebase
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install Dependencies
run: npm install react react-dom crypto-js @babel/core @babel/preset-env @babel/preset-react
- name: Build
run: npm run dev
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}