Skip to content

CD

CD #6

Workflow file for this run

name: CD
on:
# Triggers the workflow on pull request events but only for the main branch
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# Runs on self hosted runner
runs-on: self-hosted
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Build yapper-be
- name: Get inside yapper-be(NodeJS) and install dependencies
run: |
cd yapper-be
npm install
serve:
# Runs only after build is completed successfully
needs: build
# Runs on self hosted runner
runs-on: self-hosted
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Build yapper-be
- name: Server NodeJs yapper-be
run: |
cd yapper-be
node server.js