From 5eec3e811a03d7b45a1b0ae1539bda1feab1aa7e Mon Sep 17 00:00:00 2001 From: sujaykundu777 Date: Sat, 20 Jun 2020 01:14:05 +0530 Subject: [PATCH] added firebase deploy action --- .github/workflows/firebase_deploy.yml | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/firebase_deploy.yml diff --git a/.github/workflows/firebase_deploy.yml b/.github/workflows/firebase_deploy.yml new file mode 100644 index 0000000000000..bb855310769b7 --- /dev/null +++ b/.github/workflows/firebase_deploy.yml @@ -0,0 +1,38 @@ +name: Build and Deploy to Firebase Hosting +on: + push: + branches: + - master + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Build + run: jekyll build + - name: Archive Production Artifact + uses: actions/upload-artifact@master + with: + name: build + path: build + 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: build + path: build + - name: Deploy to Firebase + uses: w9jds/firebase-action@master + with: + args: deploy --only hosting + env: + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} \ No newline at end of file