This commit is contained in:
@@ -8,12 +8,18 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: production-runner
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run Application
|
- name: Kill existing process
|
||||||
run: cargo run --release
|
run: |
|
||||||
|
pkill site || true
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Build
|
||||||
uses: actions/upload-artifact@v4
|
run: cargo build --release
|
||||||
|
|
||||||
|
- name: Start Application
|
||||||
|
run: |
|
||||||
|
nohup ./target/release/site > server.log 2>&1 &
|
||||||
Reference in New Issue
Block a user