website/.forgejo/workflows/restart_service.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 10: cannot unmarshal !!seq into model.Job
2025-04-01 12:59:11 +02:00

21 lines
452 B
YAML

name: Restart Website Service
on:
push:
branches:
- main
jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Restart website service
env:
SSH_PRIVATE_KEY: ${{ secrets.WEBSITE_KEY }}
run: |
echo "$SSH_PRIVATE_KEY" > private_key
chmod 600 private_key
ssh -i private_key website-host-user@spoodythe.one -t 'systemctl restart website.service'