take 2
This commit is contained in:
parent
b3afe5929f
commit
ea9986803a
|
@ -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
|
Loading…
Reference in a new issue