forked from hotosm/tasking-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added custom actions for forntend deployment
- Loading branch information
1 parent
0d8a0b0
commit c7d59c1
Showing
2 changed files
with
37 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |