Skip to content

Commit

Permalink
Create dev-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
isiko authored Feb 12, 2024
1 parent 10533e8 commit 5164837
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
environment: ssh
steps:
- uses: actions/checkout@v3

- name: Build
run: cargo build --verbose --release
- name: Run tests
run: cargo test --verbose

- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }}
REMOTE_USER: ${{ secrets.DEPLOY_USER }}
REMOTE_HOST: ${{ secrets.DEPLOY_HOST }}
REMOTE_PORT: ${{ secrets.DEPLOY_PORT }}
SOURCE: target/release/
TARGET: /srv/foodcalc
SCRIPT_AFTER: echo $RSYNC_STDOUT

0 comments on commit 5164837

Please sign in to comment.