From 7f2f48c2ab498302450643faff9ddd2f6fabc217 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Sun, 17 Aug 2025 19:58:00 -0300 Subject: [PATCH] Update node.yaml --- .forgejo/workflows/node.yaml | 45 ++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/.forgejo/workflows/node.yaml b/.forgejo/workflows/node.yaml index d14ac68..c81b1b3 100644 --- a/.forgejo/workflows/node.yaml +++ b/.forgejo/workflows/node.yaml @@ -2,34 +2,35 @@ name: GBCI on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: build: runs-on: gbo - + steps: - - name: Disable SSL verification (temporary) - run: git config --global http.sslVerify false + - name: Disable SSL verification (temporary) + run: git config --global http.sslVerify false - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Install Rust - uses: msrd0/rust-toolchain@v1 - with: - toolchain: stable - - - name: Run build - run: cargo build --locked + - name: Install Rust + uses: msrd0/rust-toolchain@v1 + with: + toolchain: stable - - name: Deploy binary and restart - run: | - lxc exec bot:pragmatismo-system -- systemctl stop system - - sudo cp ./target/debug/gbserver /opt/gbo/bin/system - sudo chmod +x /opt/gbo/bin/system/gbserver - - lxc exec bot:pragmatismo-system -- systemctl start system - \ No newline at end of file + - name: Run build + run: | + sudo cp /opt/gbo/bin/system/.env . + cargo build --locked + + - name: Deploy binary and restart + run: | + lxc exec bot:pragmatismo-system -- systemctl stop system + + sudo cp ./target/debug/gbserver /opt/gbo/bin/system + sudo chmod +x /opt/gbo/bin/system/gbserver + + lxc exec bot:pragmatismo-system -- systemctl start system