From 0efc11fb7094a328d2fcd9e85621377f8107e35c Mon Sep 17 00:00:00 2001 From: PiotrWodecki Date: Tue, 14 Apr 2026 16:17:37 +0200 Subject: [PATCH 1/3] Add fishjam-chat deployment workflow Moved from web-client-sdk repo after examples migration (abad93c). Deploys web-react/fishjam-chat to nginx server via SCP on push to main. --- .github/workflows/fishjam-chat-deploy.yml | 54 +++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/fishjam-chat-deploy.yml diff --git a/.github/workflows/fishjam-chat-deploy.yml b/.github/workflows/fishjam-chat-deploy.yml new file mode 100644 index 0000000..576850c --- /dev/null +++ b/.github/workflows/fishjam-chat-deploy.yml @@ -0,0 +1,54 @@ +name: Deploy Fishjam Chat as static page + +on: + push: + branches: ["main"] + paths: + - "web-react/fishjam-chat/**" + - ".github/workflows/fishjam-chat-deploy.yml" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: "fishjam-chat" + cancel-in-progress: false + +jobs: + build-deploy: + if: github.actor != 'dependabot[bot]' + environment: + name: fishjam-chat + url: ${{ vars.FISHJAM_CHAT_URL }} + runs-on: ubuntu-latest + defaults: + run: + working-directory: web-react/fishjam-chat + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Setup Node.js + uses: actions/setup-node@v5 + with: + node-version: "22" + cache: "yarn" + cache-dependency-path: ./web-react/fishjam-chat/yarn.lock + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - 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: 3 + source: web-react/fishjam-chat/dist/* + target: /usr/share/nginx/html From 66fa7a3f8092b6548695b89d86bef92a10214ca9 Mon Sep 17 00:00:00 2001 From: PiotrWodecki Date: Tue, 14 Apr 2026 16:42:22 +0200 Subject: [PATCH 2/3] Add livestreaming deployment workflow Moved from web-client-sdk repo after examples migration (abad93c). Deploys web-react/livestreaming to GitHub Pages on push to main. --- .github/workflows/livestreaming-deploy.yml | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/livestreaming-deploy.yml diff --git a/.github/workflows/livestreaming-deploy.yml b/.github/workflows/livestreaming-deploy.yml new file mode 100644 index 0000000..b36403a --- /dev/null +++ b/.github/workflows/livestreaming-deploy.yml @@ -0,0 +1,56 @@ +name: Deploy Livestreaming example + +on: + push: + branches: ["main"] + paths: + - "web-react/livestreaming/**" + - ".github/workflows/livestreaming-deploy.yml" + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + defaults: + run: + working-directory: web-react/livestreaming + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Setup Node.js + uses: actions/setup-node@v5 + with: + node-version: "22" + cache: "yarn" + cache-dependency-path: ./web-react/livestreaming/yarn.lock + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build project + run: yarn build + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "web-react/livestreaming/dist" + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From bfe51e357a1e2619a7f2561cacd446f0c5fd9c12 Mon Sep 17 00:00:00 2001 From: PiotrWodecki Date: Tue, 14 Apr 2026 17:03:59 +0200 Subject: [PATCH 3/3] Set Vite base path for GitHub Pages deployment GitHub Pages serves from a sub-path (/examples/), so assets need relative URLs to load correctly. --- .github/workflows/livestreaming-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/livestreaming-deploy.yml b/.github/workflows/livestreaming-deploy.yml index b36403a..2fac86b 100644 --- a/.github/workflows/livestreaming-deploy.yml +++ b/.github/workflows/livestreaming-deploy.yml @@ -44,7 +44,7 @@ jobs: run: yarn install --frozen-lockfile - name: Build project - run: yarn build + run: yarn build --base "./" - name: Upload artifact uses: actions/upload-pages-artifact@v3