-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.11 KB
/
deploy-prod.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy to rundgang.udk-berlin.de
on:
#push:
# branches: [ main ]
workflow_dispatch:
jobs:
deploy:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Sync files to remote host
uses: up9cloud/[email protected]
env:
HOST: rundgang.udk-berlin.de
KEY: ${{secrets.SSH_RUNDGANG_UDK_BERLIN_DE}}
TARGET: /opt/rundgang-frontend-22/
VERBOSE: true
USER: root
PORT: 22
ARGS: --recursive --update --delete --compress --exclude=/.git/
SSH_ARGS: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
SOURCE: .
- name: Restart rundgang-frontend-22 service
uses: fifsky/[email protected]
with:
command: |
cd /opt/rundgang-frontend-22/
npm clean-install
npm run build
systemctl restart rundgang-frontend-22.service
host: rundgang.udk-berlin.de
user: root
key: ${{secrets.SSH_RUNDGANG_UDK_BERLIN_DE}}