Files
mistralrs-package/.gitea/workflows/deploy-ui.yml
rob thijssen e9abeccdea fix(ui): host .repo files and use URL form in install instructions
The previous instructions used `--from-repofile=/dev/stdin` with a
heredoc, which fails because dnf copies the source file and /dev/stdin
is not a regular file. Host the .repo files on the deployed site and
update the docs to use `--from-repofile=https://...` instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 08:31:34 +03:00

54 lines
1.2 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
env:
RPM_REPO_HOST: oolon.kosherinata.internal
steps:
- uses: actions/checkout@v4
- 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="*.repo" \
--include="assets/***" \
--exclude="*" \
ui/dist/ \
"gitea_ci@${RPM_REPO_HOST}:/var/www/rpm/"