Skip to content

Commit

Permalink
Add Fishjam Chat CD (#179)
Browse files Browse the repository at this point in the history
## Description

Closes FCE-728

Decided to not use github pages as there are docs there. Deployment goes
to https://chat.fishjam.io

## Motivation and Context

Why is this change required? What problem does it solve? If it fixes an
open
issue, please link to the issue here.

## Types of changes

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to
      not work as expected)
  • Loading branch information
AHGIJMKLKKZNPJKQR authored Nov 18, 2024
1 parent b256dbf commit 1c102c3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/fishjam-chat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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

0 comments on commit 1c102c3

Please sign in to comment.