I can't send files from the repository folder to the remote server
sergeybruh opened this issue · comments
I can't send files from the repository folder to the remote server
It looks like the folder doesn't exist https://prnt.sc/12vrigm
but the folder is there https://prnt.sc/12vrjn0
How should I properly write the path to the folder which is located in the repository https://prnt.sc/12vrktf
I want all files from "dist" be uploaded to a remote server.
It looks like there is a bug that doesn't allow me to do it or I do something work.
Thank you.
Kind regards,
Sergey.
Can you show your workflow file?
I tried different options like:
local: dist
local: /dist/
local: ./dist/
local: ./dist
on: workflow_dispatch
jobs:
web-deploy:
name: Build and Deploy FE of Convierge to Concierge server #set name of job
runs-on: ubuntu-latest #set OS and version
steps:
- name: Copy folder with build to the remote server
uses: garygrossgarten/github-action-scp@release
with: #we will upload data from folder in git hab actions to folder on server
local: dist
remote: /var/www/test_ssh/
host: ${{ secrets.SERVER }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.PASSWORD }}
dotfiles : true
Good morning Gary, hope you are doing well.
So there is the BUG?
Well, I don't know what's causing your problem. I'm sorry.
@sergeybruh you need to checkout your repository before trying to copy with the action. Can you verify that you're using
steps:
- name: checkout
uses: actions/checkout@v2
Thanks for wondering about this.
I found this out a couple of hours ago,
did some tests. Flights going ok