Skip to content

Commit

Permalink
Update readme and path
Browse files Browse the repository at this point in the history
  • Loading branch information
setoelkahfi committed Apr 29, 2023
1 parent 4baf120 commit 8018f7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GitHub Action to running Rust binary on Debian Bulls Eye using SSH `rsync`.

## Supported runners
## Supported runner

`ubuntu-20.04`

Expand All @@ -11,12 +11,11 @@ GitHub Action to running Rust binary on Debian Bulls Eye using SSH `rsync`.
## Input

```yaml
inputs:
working-directory:
description: "Working directory for the build."
required: true
binary-name:
description: "Name of the binary to run."
description: "Name of the binary to run. Usually the [[bin]] value in the Cargo.toml."
required: true
ssh-user:
description: "SSH user."
Expand Down Expand Up @@ -46,13 +45,14 @@ jobs:
build-and-release:
runs-on: ubuntu-20.04
steps:
- uses: setoelkahfi/garust-debian@v1
with: Install Rust stable
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
ssh-user: ${{ secrets.SSH_USER }}
ssh-host: ${{ secrets.SSH_HOST }}
project-directory: ${{ secrets.PROJECT_DIRECTORY }}
project-name: ${{ secrets.PROJECT_NAME }}
- uses: actions/checkout@v3
- uses: setoelkahfi/garust-debian@v1
with: Install Rust stable
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
ssh-user: ${{ secrets.SSH_USER }}
ssh-host: ${{ secrets.SSH_HOST }}
project-directory: ${{ secrets.PROJECT_DIRECTORY }}
project-name: ${{ secrets.PROJECT_NAME }}

```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ runs:
run: rsync -r ./target/release/ ${{ inputs.ssh-user }}@${{ inputs.ssh-host }}:${{ inputs.project-directory }}
shell: bash
- name: Start process
run: ssh ${{ inputs.ssh-user }}@${{ inputs.ssh-host }} 'bash -s' < start.sh ${{ inputs.project-directory }} ${{ inputs.project-name }}
run: ssh ${{ inputs.ssh-user }}@${{ inputs.ssh-host }} 'bash -s' < start.sh ./${{ inputs.project-directory }} ${{ inputs.project-name }}
shell: bash

0 comments on commit 8018f7e

Please sign in to comment.