-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.03 KB
/
push_build.yml
File metadata and controls
37 lines (34 loc) · 1.03 KB
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
36
name: STICKERS build workflow
on:
push:
branches:
- build
jobs:
copy_compose:
name: Copy build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Remove old build files via SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.SSH_KEY }}
script: "rm -rf /home/stickerstack/frontend/build/*"
- name: copy file via ssh password
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.SSH_KEY }}
source: "build/"
target: "/home/stickerstack/frontend/build"
strip_components: 1
- name: Execute remote script via SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.SSH_KEY }}
script: "/home/stickerstack/nginx/update.sh"