-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (23 loc) · 938 Bytes
/
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
# This is a basic workflow to help you get started with Actions
name: Deploy
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pxgamer/[email protected]
with:
command: install --no-dev --ignore-platform-reqs --no-interaction --no-suggest --no-progress --optimize-autoloader --prefer-dist
- uses: disorientations/rsync-deployments@master
with:
USER_AND_HOST: [email protected]
DEST: /home/disorie1/public_html/
RSYNC_OPTIONS: -avzr --delete --exclude /config/database.ini --exclude /uploads/
env:
DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}