-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.02 KB
/
fishjam-chat.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
39
40
41
42
43
44
name: Deploy Fishjam Chat as static page
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: "fishjam-chat"
cancel-in-progress: false
jobs:
build-deploy:
environment:
name: fishjam-chat
url: ${{ vars.FISHJAM_CHAT_URL }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Install node dependencies
run: yarn
- name: Build project
run: yarn build
- name: Copy files to deployment server
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ vars.FISHJAM_CHAT_HOST }}
username: ${{ secrets.FISHJAM_CHAT_USERNAME }}
key: ${{ secrets.FISHJAM_CHAT_PRIVATE_KEY }}
rm: true
strip_components: 4
source: examples/react-client/fishjam-chat/dist/*
target: /usr/share/nginx/html