From bdd298dd9936781f4c7b42fb6e22efe0d51dcc6c Mon Sep 17 00:00:00 2001 From: Waris Damkham <99647936+Waariss@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:43:35 +0700 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..dcf7ec3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +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 }}