From 067bf8afb2db5d0d78371c05c6a96cc8e5e6ad3e Mon Sep 17 00:00:00 2001 From: Olavio Lacerda Date: Thu, 15 Oct 2020 22:07:33 -0300 Subject: [PATCH] :construction_worker: add deployment workflow for next --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..474f574 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Node.js CI + +on: [push] + +jobs: + build: + runs-on: self-hosted + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build --if-present + - run: pm2 reload next-js + env: + CI: true \ No newline at end of file