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 }} +