Skip to content

Refactor Handler implementations and improve API key usage #11

Refactor Handler implementations and improve API key usage

Refactor Handler implementations and improve API key usage #11

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/"