Files
srvmon/.gitea/workflows/deploy.yaml
T
luis d3ae959355
Build and Deploy / build-deploy (push) Successful in 57s
Add build and deploy workflow
2026-03-31 22:13:13 +01:00

29 lines
541 B
YAML

name: Build and Deploy
on:
push:
branches: [master]
jobs:
build-deploy:
runs-on: ubuntu-latest
container:
image: rust:latest
volumes:
- /opt/srvmon:/deploy
steps:
- name: Install Node
run: |
apt-get update
apt-get install -y nodejs git
- uses: actions/checkout@v4
- name: Build
run: cargo build --release
- name: Deploy
run: |
cp target/release/srvmon /deploy/srvmon.new
mv /deploy/srvmon.new /deploy/srvmon