-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.28 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
41
42
43
44
45
name: '⚠️‼️ deploy_prod → rundgang.udk-berlin.de'
on:
#push:
# branches: [ main ]
workflow_dispatch:
inputs:
ref:
description: The branch, tag or SHA to checkout
required: true
default: 'main'
jobs:
deploy_prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.event.inputs.ref}}
- 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-website-2024/
VERBOSE: true
USER: root
PORT: 22
ARGS: --recursive --update --delete --compress --exclude=/.env --exclude=/.git/ --exclude=/public/fonts/
SSH_ARGS: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
SOURCE: .
- name: Restart rundgang-website-2024 service
uses: fifsky/[email protected]
with:
command: |
cd /opt/rundgang-website-2024/
npm clean-install
npm run build
systemctl restart rundgang-website-2024.service
host: rundgang.udk-berlin.de
user: root
key: ${{secrets.SSH_RUNDGANG_UDK_BERLIN_DE}}