Skip to content

Merge pull request #223 from knrdl/dependabot/pip/server/aiohttp-3.10.11 #239

Merge pull request #223 from knrdl/dependabot/pip/server/aiohttp-3.10.11

Merge pull request #223 from knrdl/dependabot/pip/server/aiohttp-3.10.11 #239

Workflow file for this run

name: Github Page Publish
on:
push:
branches:
- main
jobs:
github-page:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: client/package-lock.json
- name: apply demo customizations
run: |
sed -i "s/username: string = ''/username: string = 'admin'/" client/src/auth/Login.svelte
sed -i "s/password: string = ''/password: string = '123456'/" client/src/auth/Login.svelte
sed -i "s|// MOCK_PLACEHOLDER|import { WebSocketMock as WebSocket } from './api.mock'|" client/src/api.ts
- run: cd client && npm install && npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client/dist