Skip to content

TM NAXA Custom Branch CICD #2

TM NAXA Custom Branch CICD

TM NAXA Custom Branch CICD #2

name: TM NAXA Custom Branch CICD
on:
push:
tags:
- force-deploy*
workflow_dispatch:
jobs:
build-static-for-branch:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Change Dir
run: cd frontend
- name: Install dependencies
run: yarn install
- name: Generate build
run: npm run build
- name: copy file via ssh password
uses: appleboy/[email protected]
with:
host: ${{ vars.SERVER_IP }}
username: ${{ vars.SERVER_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "./build/"
target: /home/ubuntu/Projects/tasking-manager/frontend/build/