diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 9d630c5..e4f358c 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -10,21 +10,21 @@ jobs: build: runs-on: self-hosted steps: + - name: Create path + run: | + mkdir -p /opt/site + cd /opt/site + - name: Checkout code uses: actions/checkout@v4 - - - name: Kill existing process - run: | - pkill site || true - + - name: Build run: cargo build --release - - name: Where am I? + - name: Kill old site run: | - pwd - ls -R + pkill site || true - - name: Start Application + - name: Start new site run: | nohup ./target/release/site > server.log 2>&1 &