From b6403b83fef2d9daf818a810d6ea62547c51a62e Mon Sep 17 00:00:00 2001 From: andrea-buzz <54395135+andrea-buzz@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:03:44 +0200 Subject: [PATCH] Create main.yml action sftp upload on push --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..eb1764e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +on: [push] + +jobs: + upload_files: + runs-on: ubuntu-latest + name: Upload a builded file. + steps: + - name: Checkout + uses: actions/checkout@v2.3.4 + - name: Upload Files + id: upload + uses: wearesection/sftp-action@v1.0.0 + with: + host: '127.0.0.1' + port: 22 + username: 'root' + password: 'password' + localPath: './dist/index.js' + remotePath: './'