Skip to content

Updating to new URL format? #84

Updating to new URL format?

Updating to new URL format? #84

Workflow file for this run

name: Deploy
on:
push:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "false"
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: build
target: arm-unknown-linux-gnueabihf
args: "--locked --release"
strip: true
- name: Package as archive
shell: bash
run: |
cp target/arm-unknown-linux-gnueabihf/release/discord_status_bot discord_status_bot
- name: Copy over
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
source: "discord_status_bot"
target: ${{ secrets.TARGET_DIR }}
- name: Restarting the job
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: cd ${{secrets.TARGET_DIR}} && sudo ./start_job.sh