diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 2b0578c..9b2c0af 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,15 +1,18 @@ -name: Push over SCP -on: - schedule: - - cron: "0 */3 * * *" - workflow_dispatch: +name: scp files +on: [push] jobs: + build: + name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Downloading Files... - run: | - echo Downloading Files... - exec 3>&1 &>/dev/null - scp + - uses: actions/checkout@v3 + - name: copy file via ssh password + uses: appleboy/scp-action@v0.1.6 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + source: "tests/a.txt,tests/b.txt" + target: your_server_target_folder_path