-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.64 KB
/
webserver.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: webserver data
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: pwd check
run: |
echo $(pwd)
- name: checkout
uses: actions/checkout@v2
- name: move static files to server
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
local: "/home/runner/work/notasdeausencia/notasdeausencia/webserver/static"
remote: "/root/webserver/static"
- name: move escena1 html files to server
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
local: "/home/runner/work/notasdeausencia/notasdeausencia/webserver/escena1"
remote: "/root/webserver/escena1/"
- name: move escena2 html files to server
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
local: "/home/runner/work/notasdeausencia/notasdeausencia/webserver/escena2"
remote: "/root/webserver/escena2/"
- name: move escena3 html files to server
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
local: "/home/runner/work/notasdeausencia/notasdeausencia/webserver/escena3"
remote: "/root/webserver/escena3/"