diff --git a/README.md b/README.md index 8585d77..9bcd1ee 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ GitHub Action to running Rust binary on Debian Bulls Eye using SSH `rsync`. -## Supported runners +## Supported runner `ubuntu-20.04` @@ -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." @@ -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 }} ``` \ No newline at end of file diff --git a/action.yml b/action.yml index 4fdcd61..ae06341 100644 --- a/action.yml +++ b/action.yml @@ -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