From 67c3638c13a990eae78eb84fd0b96dae234d601d Mon Sep 17 00:00:00 2001 From: Possawat Suksai Date: Fri, 1 May 2020 03:20:46 +0700 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..0905c63 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Deploy to CF +on: + push: + branches: + - staging + +jobs: + Deploy to firebase: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Install Dependencies + working-directory: ./functions + run: npm install + - name: Deploy to Firebase + uses: w9jds/firebase-action@master + with: + args: deploy --only functions + env: + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} +