gbserver/.forgejo/workflows/node.yaml

32 lines
653 B
YAML
Raw Normal View History

name: GBCI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: gbo
steps:
- name: Disable SSL verification (temporary)
run: git config --global http.sslVerify false
- uses: actions/checkout@v4
- name: Install Rust
uses: msrd0/rust-toolchain@v1
with:
toolchain: stable
- name: Run build
run: cargo build --workspace --release --locked
- name: Deploy binary
run: |
sudo cp ./target/release/gbserver /opt/gbo/bin/bot
sudo chmod +x /opt/gbo/bin/bot/gbserver
sudo systemctl restart gbserver