File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed
Expand file tree Collapse file tree 1 file changed +0
-31
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
45- needs : test
4616 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
4717
4818 steps :
8353
8454 echo "Build completed!"
8555
86- # Restart com PM2
8756 echo "Restarting application with PM2..."
8857 pm2 delete $PM2_APP_NAME --silent || true
8958
You can’t perform that action at this time.
0 commit comments