From 812d99cd778837fb66cbc6eb2b4faa5e8ab63c52 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 6 Dec 2022 18:57:20 +0000 Subject: [PATCH] Add production deploy --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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..b078290 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy + +concurrency: + group: prod + cancel-in-progress: true + +on: + push: + branches: [prod] + pull_request: + workflow_dispatch: + + +jobs: + deploy: + runs-on: ubuntu-latest + environment: prod + steps: + - uses: actions/checkout@v3 + + - name: Configure Node + uses: actions/setup-node@v3 + with: + node-version: '16.x' + cache: 'yarn' + + - name: Install packages + run: yarn install --frozen-lockfile + + - name: Deploy + run: serverless deploy