Files
mistralrs-package/.gitea/workflows/deploy-ui.yml
rob thijssen 0ec89de36f
All checks were successful
deploy-ui / build-and-deploy (push) Successful in 21s
fix(ci): remove nginx config deploy from deploy-ui workflow
Nginx config is managed by script/setup/nginx.sh, not CI. The
gitea_ci user doesn't have permissions to write to /etc/nginx.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-27 13:24:10 +03:00

62 lines
1.4 KiB
YAML

name: deploy-ui
on:
push:
branches: [main]
paths:
- "ui/**"
- ".gitea/workflows/deploy-ui.yml"
workflow_dispatch: {}
jobs:
build-and-deploy:
runs-on:
- fedora-43
- nvm
env:
RPM_REPO_HOST: oolon.kosherinata.internal
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
run: |
export NVM_DIR="${HOME}/.nvm"
[ -s "${NVM_DIR}/nvm.sh" ] && . "${NVM_DIR}/nvm.sh"
nvm install --lts
echo "$(dirname "$(nvm which current)")" >> "$GITHUB_PATH"
- name: Install dependencies
run: |
cd ui
npm ci
- name: Build UI
run: |
cd ui
npm run build
- name: Set up SSH
run: |
install --directory --mode 700 ~/.ssh
echo "${RSYNC_SSH_KEY}" | install --mode 600 /dev/stdin ~/.ssh/id_ed25519
env:
RSYNC_SSH_KEY: ${{ secrets.RSYNC_SSH_KEY }}
- name: Test SSH connectivity
run: |
ssh -o StrictHostKeyChecking=accept-new "gitea_ci@${RPM_REPO_HOST}" exit
- name: Deploy UI to web root
run: |
rsync \
--recursive \
--links \
--verbose \
--delete \
--chmod D755,F644 \
--include="index.html" \
--include="assets/***" \
--exclude="*" \
ui/dist/ \
"gitea_ci@${RPM_REPO_HOST}:/var/www/rpm/"