Files
site/.gitea/workflows/ci.yaml
T
jjanella 03b84351d7
Build / build (push) Failing after 0s
ip test
2026-05-21 13:05:39 -04:00

29 lines
629 B
YAML

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: homelab-predator
steps:
- name: Pull
working-directory: /servers/site
run: ip a #git pull origin main
- name: Build
working-directory: /servers/site
run: cargo build --release
- name: Restart site
working-directory: /servers/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!"