This commit is contained in:
Snorre 2025-04-01 12:59:11 +02:00
parent b3afe5929f
commit ea9986803a

View file

@ -3,19 +3,16 @@ name: Restart Website Service
on:
push:
branches:
- main # Change this to the branch you want to trigger the action on
- main
jobs:
restart_service:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Restart website service
env:
SSH_PRIVATE_KEY: ${{ secrets.WEBSITE_KEY }} # Store your private key in secrets
SSH_PRIVATE_KEY: ${{ secrets.WEBSITE_KEY }}
run: |
echo "$SSH_PRIVATE_KEY" > private_key
chmod 600 private_key