-
-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (36 loc) · 1.12 KB
/
deploy_gipsy-beta.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
37
38
name: Deploy Gipsy Beta
on:
workflow_dispatch:
push:
branches:
- beta
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # fetch all history
submodules: recursive
- name: Deploy to server
uses: swznd/sftp-deploy@master
with:
host: ${{ secrets.BETA_SFTP_IP }}
port: ${{ secrets.BETA_SFTP_PORT }}
user: ${{ secrets.BETA_SFTP_USER }}
password: ${{ secrets.BETA_SFTP_PASSWORD }}
ignore: .github/**,.gitignore,**/.gitignore,**/.git/**
- name: Restart running bot
env:
GIPSY_RESTART_BETA_ENDPOINT: ${{ secrets.GIPSY_RESTART_BETA_ENDPOINT }}
GIPSY_RESTART_BETA_BEARER: ${{ secrets.GIPSY_RESTART_BETA_BEARER }}
run: |
curl $GIPSY_RESTART_BETA_ENDPOINT \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $GIPSY_RESTART_BETA_BEARER" \
-X POST \
-d '{
"signal": "restart"
}'