fix: temp directory bug
Some checks failed
Build / build (push) Failing after 6s

This commit is contained in:
2026-01-31 18:46:06 -05:00
parent 351dfc2734
commit 51e2e1eea4

View File

@@ -10,21 +10,22 @@ jobs:
build: build:
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- name: Create path
run: |
mkdir -p /opt/site
cd /opt/site
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Build - name: Build
working-directory: /opt/site
run: cargo build --release run: cargo build --release
- name: Kill old site - name: Move to opt
run: |
mkdir -p /opt/site
mv target/release/site /opt/site
mv static /opt/site -r
mv templates /opt/site -r
- name: Restart site
working-directory: /opt/site
run: | run: |
pkill site || true pkill site || true
- name: Start new site
run: |
nohup ./target/release/site > server.log 2>&1 & nohup ./target/release/site > server.log 2>&1 &