forked from brunoamaral/gregory
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.19 KB
/
deploy-delorean.yaml
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
name: Deploy Gregory
on:
push:
branches:
- main
jobs:
build:
name: Building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Github Actions cache
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: SSH into House and run build
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: /home/${{ secrets.USERNAME }}/gregory/build.py
- name: Telegram notification
if: cancelled() == false
uses: xinthink/action-telegram@v1.1
with:
botToken: ${{ secrets.TELEGRAM_BOT_TOKEN }}
chatId: ${{ secrets.TELEGRAM_CHAT_ID }}
jobStatus: ${{ job.status }}
skipSuccess: false