Skip to content

Refactor discord bot's event handler and message processing #24

Refactor discord bot's event handler and message processing

Refactor discord bot's event handler and message processing #24

Workflow file for this run

name: Rust
on:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build Release
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose
- name: Copy to Server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "target/release/"
target: "/root/personal/discord-bot/"