Skip to content

Fix CI

Fix CI #6

Workflow file for this run

name: Build to DOM Cloud
on:
push:
branches:
- main
workflow_dispatch:
env:
APP_BINARY_PATH: target/release/todo
SERVER_DESTINATION: [email protected]:./public_html
jobs:
copy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust
uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v1
- name: Build release binary
run: cargo build --release --locked
- name: Copy to Remote Server
run: >-
mkdir -p $HOME/.ssh; (echo "${{ secrets.SSH_KEY }}" > $HOME/.ssh/id_rsa); chmod 0600 $HOME/.ssh/id_rsa;
scp -o StrictHostKeyChecking=no -i $HOME/.ssh/id_rsa ${{ env.APP_BINARY_PATH }} ${{ env.SERVER_DESTINATION }};