16 lines
413 B
YAML
16 lines
413 B
YAML
name: Deploy ${{ gitea.repository }}
|
|
run-name: ${{ gitea.actor }} is deploying ${{ gitea.repository }}
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy via Tailscale SSH
|
|
run: |
|
|
ssh -o StrictHostKeyChecking=accept-new -o BatchMode=yes \
|
|
root@100.106.10.22 \
|
|
'cd /root/repos/www && git pull && ./restart.sh'
|