@@ -0,0 +1,23 @@
1+name: deploy
2+
3+on:
4+ push:
5+ branches: [main]
6+
7+# One deploy at a time; a newer push cancels the one still running.
8+concurrency:
9+ group: deploy-main
10+ cancel-in-progress: true
11+
12+jobs:
13+ deploy:
14+ runs-on: [self-hosted, linux, x64]
15+ steps:
16+ # The service runs from this checkout and web/dist is served from its
17+ # disk, so build in place rather than in the runner's own _work dir.
18+ - name: update checkout
19+ run: git -C /home/sean/repos/irvc pull --ff-only
20+ - name: build
21+ run: make -C /home/sean/repos/irvc
22+ - name: restart irvc
23+ run: sudo -n /usr/bin/systemctl restart irvc.service