Skip to content

Merge pull request #23 from CleilsonAndrade:updated-description-readme #43

Merge pull request #23 from CleilsonAndrade:updated-description-readme

Merge pull request #23 from CleilsonAndrade:updated-description-readme #43

Workflow file for this run

name: DEV-DEPLOY
on:
push:
branches: [dev]
jobs:
deploy:
runs-on: [self-hosted, dev, doc-issuer-dev]
environment:
name: development
url: ''
strategy:
matrix:
node-version: [lts/*]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install yarn
run: npm i -g yarn
- name: remove dist folder
run: rm -rf dist
- name: yarn install
run: yarn install --frozen-lockfile
- name: 'Create env file'
run: |
echo '${{ secrets.STAGE_ENV_FILE }}' > .env
- name: prisma generate
run: yarn gen
- name: prisma generate schema
run: yarn prisma generate --schema prisma/schema.prisma
- name: build
run: yarn build
- name: start or reload server
run: pm2 startOrGracefulReload ecosystem.config.js