forked from JaimeObregon/ladonacion
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.46 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Deploys in production on every push to master
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checks out the repository
uses: actions/checkout@v1
- name: Installs the dependencies
run: npm install && npx snowpack build && cp httpdocs/resources/ladonacion.js build/twitter/
- name: Deploys the site
uses: easingthemes/[email protected]
env:
ARGS: -rltgoDzvO --delete
SOURCE: 'build/'
TARGET: ${{ secrets.REMOTE }}
REMOTE_HOST: ${{ secrets.HOST }}
REMOTE_USER: ${{ secrets.USER }}
REMOTE_PORT: ${{ secrets.PORT }}
SSH_PRIVATE_KEY: ${{ secrets.KEY }}
- name: Deploys the /slides directory
uses: easingthemes/[email protected]
env:
ARGS: -rltgoDzvO
SOURCE: 'slides/'
TARGET: '${{ secrets.REMOTE }}/slides'
REMOTE_HOST: ${{ secrets.HOST }}
REMOTE_USER: ${{ secrets.USER }}
REMOTE_PORT: ${{ secrets.PORT }}
SSH_PRIVATE_KEY: ${{ secrets.KEY }}
- name: Deploys the launch page
uses: easingthemes/[email protected]
env:
ARGS: -rltgoDzvO --delete
SOURCE: '321/'
TARGET: ${{ secrets.REMOTE_PRELAUNCH }}
REMOTE_HOST: ${{ secrets.HOST }}
REMOTE_USER: ${{ secrets.USER }}
REMOTE_PORT: ${{ secrets.PORT }}
SSH_PRIVATE_KEY: ${{ secrets.KEY }}