Skip to content

TM NAXA Custom Branch CICD #5

TM NAXA Custom Branch CICD

TM NAXA Custom Branch CICD #5

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
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install dependencies
run: cd frontend && yarn install
- name: Generate build
run: GENERATE_SOURCEMAP=false && yarn 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: "./frontend/build/"
target: /home/ubuntu/Projects/tasking-manager/frontend/build/