Skip to content

Commit

Permalink
added custom actions for forntend deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-naxa committed Jan 30, 2024
1 parent 0d8a0b0 commit c7d59c1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 52 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/build_and_deploy_frontend.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/build_frontend_custom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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/

0 comments on commit c7d59c1

Please sign in to comment.