This commit is contained in:
parent
51e542165b
commit
e04baafc25
23
.gitea/workflows/deploy.yml
Normal file
23
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: Deploy to Pi
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- actions
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: self-hosted
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Stop existing server
|
||||||
|
run: |
|
||||||
|
pkill -f 'python3 -m http.server' || true
|
||||||
|
|
||||||
|
- name: Start server
|
||||||
|
run: |
|
||||||
|
chmod +x ./start.sh
|
||||||
|
nohup ./start.sh > server.log 2>&1 &
|
Loading…
Reference in New Issue
Block a user