This commit is contained in:
@@ -10,21 +10,21 @@ 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: Kill existing process
|
|
||||||
run: |
|
|
||||||
pkill site || true
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
|
||||||
- name: Where am I?
|
- name: Kill old site
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pkill site || true
|
||||||
ls -R
|
|
||||||
|
|
||||||
- name: Start Application
|
- name: Start new site
|
||||||
run: |
|
run: |
|
||||||
nohup ./target/release/site > server.log 2>&1 &
|
nohup ./target/release/site > server.log 2>&1 &
|
||||||
|
|||||||
Reference in New Issue
Block a user