From 238d686c302538c1ca6482b659a2cb7bdb2f156d Mon Sep 17 00:00:00 2001 From: srueda99 Date: Mon, 18 Apr 2022 13:44:07 -0500 Subject: [PATCH] Readme and CICD --- .github/workflows/cicd.yml | 2 +- README.md | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 4144d1c..07d6558 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -10,7 +10,7 @@ jobs: - name: Copy using key id: key-job - uses: srueda99/scp-action@v3 + uses: srueda99/scp-action@latest with: port: 22 host: ${{ secrets.SERVER_ADDRESS }} diff --git a/README.md b/README.md index 80979ab..8152a01 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # SCP ACTION -## By SRUEDA99 +***By SRUEDA99*** ## Overview This action to copy the files from your repository to a remote server using **SCP** (Secure Copy Protocol). @@ -10,19 +10,21 @@ You must give: - The `username` that will be used in the remote server. - The `destination` folder, where the content will be copied. - The `password` for the user or the private `key` in case the connection is based on SSH keys. + Optional: - The `origin` folder is set by default as _"./*"_ but you can also specify it. - The `port` is set as **22** by default, you can also specify another one. - The `passphrase` if necessary. + +**IMPORTANT** ``` -**Important** Use Github secrets to give these parameters. ``` ## Examples **With password** ``` -name: Copy using password +name: copy using password uses: srueda99/scp-action@v3 with: port: 22 @@ -34,7 +36,7 @@ with: **With key** ``` -name: Copy using key +name: copy using key uses: srueda99/scp-action@v3 with: port: 22 @@ -46,7 +48,7 @@ with: **With origin folder** ``` -name: Copy using password +name: copy using password uses: srueda99/scp-action@v3 with: port: 22 @@ -59,7 +61,7 @@ with: **With passphrase** ``` -name: Copy using key +name: copy using key uses: srueda99/scp-action@v3 with: port: 22