------gitea token------
#get from --> gitea --> site administration --> actions --> runners

------install and register runner on host------
# Download binary
wget https://dl.gitea.com/act_runner/0.2.11/act_runner-0.2.11-linux-amd64 -O /usr/local/bin/act_runner
chmod +x /usr/local/bin/act_runner

# Register (Replace <URL> and <TOKEN>)
# The --labels "pve:host" is key for your non-docker workflow
act_runner register --no-interactive --instance https://git.mapletree.email --token 4aLQr2M0Ox5aUdMaOoSIoHhyUMgCWCrFNuKCFX5l --name pve1-runner --labels "pve1:host"

------Create and move config files------
# Create the directory first
mkdir -p /etc/gitea-runner

# Generate the base config
/usr/local/bin/act_runner generate-config > /etc/gitea-runner/config.yaml

# Move the hidden .runner file (created during registration)
mv .runner /etc/gitea-runner/

------Create service File------

cat <<EOF > /etc/systemd/system/gitea-runner.service
[Unit]
Description=Gitea Actions runner
After=network.target

[Service]
ExecStart=/usr/local/bin/act_runner daemon --config /etc/gitea-runner/config.yaml
WorkingDirectory=/etc/gitea-runner
User=root
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
EOF

------start and enable------

systemctl daemon-reload
systemctl enable --now gitea-runner