Skip to content

WIP

WIP #9

Workflow file for this run

on: [push]
name: CD
jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: build
uses: actions-rs/cargo@v1
with:
command: build
args: -p rave-app-backend --release
- name: push binary to dev instance
uses: appleboy/[email protected]
with:
host: [email protected]
username: ubuntu
key: "${{ secrets.SSH_PRIVATE_KEY_DEV_INSTANCE }}"
port: 22
source: "./target/release/rave-app-backend"
target: /home/ubuntu/rave-app-backend
- name: restart dev service
uses: appleboy/[email protected]
with:
host: [email protected]
username: ubuntus
key: "${{ secrets.SSH_PRIVATE_KEY_DEV_INSTANCE }}"
port: 22
script: whoami