From 1047a38562bd1bcd64fb763c68894145b4302f01 Mon Sep 17 00:00:00 2001 From: Jeffrey Duroyon Date: Tue, 14 Jan 2020 00:09:50 +0100 Subject: [PATCH] ci: deploy to firebase --- .github/workflows/master.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/master.yml diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..0a6311c --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: '13.x' + - run: npm install + - run: npm test + - run: npm run build + - uses: w9jds/firebase-action@master + with: + args: deploy --only hosting + env: + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}