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