-
-
Notifications
You must be signed in to change notification settings - Fork 545
24 lines (22 loc) · 626 Bytes
/
main.yml
File metadata and controls
24 lines (22 loc) · 626 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
name: Deploy dev branch on dev.sugarizer.org
on:
push:
branches:
- dev
jobs:
build-and-deploy:
if: github.repository == 'llaske/sugarizer'
runs-on: ubuntu-latest
steps:
- name: Deploy on Sugarizer Dev Server
run: echo "Deploy on Sugarizer Dev Server"
- name: Update dev.sugarizer.org
uses: appleboy/ssh-action@v0.1.7
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd sugarizer-dev/sugarizer
git pull