From 9de15feca79eef0785b6ed8a8be49176c0c95095 Mon Sep 17 00:00:00 2001 From: Conor McNamara Date: Wed, 8 Mar 2023 15:08:18 +0000 Subject: [PATCH] Add continuous deployment --- .github/workflows/deploy.yml | 22 ++++++++++++++++++++++ .gitignore | 3 +-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..dae9e64 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Continuous Deployment + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + - uses: actions/setup-node@main + with: + node-version: 12 + + - name: Install dependencies + run: | + npm ci + cd functions && npm ci + + - name: Firebase deploy + run: npm run build && firebase deploy \ No newline at end of file diff --git a/.gitignore b/.gitignore index f923245..4be1cd1 100644 --- a/.gitignore +++ b/.gitignore @@ -63,5 +63,4 @@ node_modules/ .yarn-integrity # dotenv environment variables file -.env -firebase.js \ No newline at end of file +.env \ No newline at end of file