@@ -260,19 +260,19 @@ jobs:
260260
261261 - name : Extract server binary
262262 run : |
263- mkdir -p staging
264- tar -xzf timekeeper-server-linux-x86_64.tar.gz -C staging
265- ls -la staging/
263+ tar -xzf timekeeper-server-linux-x86_64.tar.gz
264+ ls -la
266265
267266 - name : Download web client
268267 uses : actions/download-artifact@v4
269268 with :
270269 name : web-client
271- path : staging/ client/build/web
270+ path : client/build/web
272271
273272 - name : Display downloaded files
274273 run : |
275- find staging -type f | head -50
274+ ls -la
275+ ls -la client/build/web
276276
277277 # Join Tailscale network
278278 - name : Tailscale
@@ -290,7 +290,7 @@ jobs:
290290 key : ${{ secrets.SSH_PRIVATE_KEY }}
291291 port : ${{ secrets.SSH_PORT }}
292292 script : |
293- systemctl stop server || true
293+ systemctl stop server
294294
295295 - name : Deploy to server
296296 uses : appleboy/scp-action@v1
@@ -299,10 +299,9 @@ jobs:
299299 username : ${{ secrets.SSH_USERNAME }}
300300 key : ${{ secrets.SSH_PRIVATE_KEY }}
301301 port : ${{ secrets.SSH_PORT }}
302- source : " staging/ server,staging/ client"
303- target : " /root/timekeeper/ "
302+ source : " server,client"
303+ target : " /root/"
304304 overwrite : true
305- strip_components : 1
306305
307306 - name : Configure and restart server
308307 uses : appleboy/ssh-action@v1.0.3
@@ -312,16 +311,16 @@ jobs:
312311 key : ${{ secrets.SSH_PRIVATE_KEY }}
313312 port : ${{ secrets.SSH_PORT }}
314313 script : |
315- chmod +x /root/timekeeper/ server
314+ chmod +x /root/server
316315 cat > /etc/systemd/system/server.service << 'SVCEOF'
317316 [Unit]
318317 Description=TimeKeeper Server
319318 After=network.target
320319
321320 [Service]
322321 Type=simple
323- WorkingDirectory=/root/timekeeper
324- ExecStart=/root/timekeeper/ server
322+ WorkingDirectory=/root
323+ ExecStart=/root/server
325324 Restart=always
326325 RestartSec=10
327326
0 commit comments