Skip to content

Commit

Permalink
Github actions test
Browse files Browse the repository at this point in the history
  • Loading branch information
ubre committed Apr 27, 2024
1 parent 6d3f5f5 commit 7e4e9bb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy to Raspberry Pi

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up SSH key
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Deploy to Raspberry Pi
run: |
ssh -o StrictHostKeyChecking=no ubre@smallfish "cd /home/ubre/Desktop/Fishley/ && git pull && sudo systemctl restart fishley.service"

0 comments on commit 7e4e9bb

Please sign in to comment.