-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 917 Bytes
/
main.yml
File metadata and controls
27 lines (27 loc) · 917 Bytes
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
# /.github/workflows/main.yml
# Warning: deletes all files on uberspace which are not in repo, use without --delete if unsure
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rsync deployments
uses: burnett01/rsync-deployments@4.1
with:
switches: -avzr --delete --exclude=.env --exclude=data/
path: /server/
remote_path: /home/${{ secrets.UBERSPACE_USER }}/raspibooth/
remote_host: ${{ secrets.UBERSPACE_HOST }}
remote_user: ${{ secrets.UBERSPACE_USER }}
remote_key: ${{ secrets.DEPLOY_KEY_PRIVATE }}
- name: Restart daemon
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.UBERSPACE_HOST }}
username: ${{ secrets.UBERSPACE_USER }}
key: ${{ secrets.DEPLOY_KEY_PRIVATE }}
script: supervisorctl restart fresh-daemon