-
Notifications
You must be signed in to change notification settings - Fork 25
35 lines (33 loc) · 1.06 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
push:
branches:
- master
workflow_dispatch:
env:
DEPLOY_PATH: /root/app/other-projects/admiral/
BUILD_SCRIPT_OUTPUT: dist
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Dependencies
run: yarn
- name: Build Appliction
run: yarn build
- name: Deploy to Server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEPLOY_SERVER_HOST }}
port: ${{ secrets.DEPLOY_SERVER_PORT }}
username: ${{ secrets.DEPLOY_SERVER_USERNAME }}
key: ${{ secrets.DEPLOY_SERVER_KEY }}
source: ${{ env.BUILD_SCRIPT_OUTPUT }}
target: ${{ env.DEPLOY_PATH }}
strip_components: 1
- name: Done
run: echo "Deployed at https://admiral.dev.family"