diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 92a3722..4eed520 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -8,12 +8,18 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: production-runner steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - - name: Run Application - run: cargo run --release + - name: Kill existing process + run: | + pkill site || true - - name: Upload artifacts - uses: actions/upload-artifact@v4 \ No newline at end of file + - name: Build + run: cargo build --release + + - name: Start Application + run: | + nohup ./target/release/site > server.log 2>&1 & \ No newline at end of file