File tree Expand file tree Collapse file tree 1 file changed +2
-30
lines changed
Expand file tree Collapse file tree 1 file changed +2
-30
lines changed Original file line number Diff line number Diff line change 1010 branches : ["main"]
1111
1212jobs :
13- test :
14- name : Test & Lint Rust
15- runs-on : ubuntu-latest
16-
17- steps :
18- - name : Checkout code
19- uses : actions/checkout@v4
20-
21- - name : Setup Rust
22- uses : dtolnay/rust-toolchain@stable
23- with :
24- components : rustfmt, clippy
25-
26- - name : Cache Rust dependencies
27- uses : actions/cache@v3
28- with :
29- path : |
30- ~/.cargo/bin/
31- ~/.cargo/registry/index/
32- ~/.cargo/registry/cache/
33- ~/.cargo/git/db/
34- target/
35- key : ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
36- restore-keys : |
37- ${{ runner.os }}-cargo-
38-
39- - name : Build release
40- run : cargo build --release
41-
4213 deploy :
4314 name : Deploy to VPS
4415 runs-on : ubuntu-latest
6839 if [ ! -d "$REPO_PATH" ]; then
6940 echo "Repository not found, cloning..."
7041 cd /home/edgar/work
71- git clone https://github.com/ndulomk/nduloWeb.Vol2-made-by-ndulo .git nduloweb
42+ git clone https://github.com/ndulomk/NduloWeb.vol2 .git nduloweb
7243 fi
7344
7445 cd "$REPO_PATH"
8354
8455 echo "Build completed!"
8556
57+ # Restart com PM2
8658 echo "Restarting application with PM2..."
8759 pm2 delete $PM2_APP_NAME --silent || true
8860
You can’t perform that action at this time.
0 commit comments