Files
site/.gitea/workflows/ci.yaml
T
jjanella 971ef3dd1c
Build / build (push) Failing after 0s
updated runner name
2026-05-21 12:57:22 -04:00

29 lines
611 B
YAML

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: homelab-predator
steps:
- name: Pull
working-directory: /opt/site
run: git pull origin main
- name: Build
working-directory: /opt/site
run: cargo build --release
- name: Restart site
working-directory: /opt/site
run: |
pkill site || true
export RUNNER_TRACKING_ID=self-managed
nohup ./target/release/site > server.log 2>&1 &
sleep 1
pgrep site && echo "Site is running!"