Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not find build directory. #5

Closed
bledar opened this issue Aug 31, 2019 · 2 comments
Closed

Can not find build directory. #5

bledar opened this issue Aug 31, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@bledar
Copy link

bledar commented Aug 31, 2019

I am trying to make a react app build and deploy with FTP to another server.
The connection is working correctly with server but the build directory can not be found.
I have create a LOCAL_DIR secret variable but not working.
My deploy.yml file looks like this:

name: Build and Publish Website
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Project setup
      run: npm install
    - name: Compile javascript
      run: npm run build
    - name: List files
      run: ls -al
    - name: Location
      run: pwd
    - name : FTP-Deploy
      uses: SamKirkland/FTP-Deploy-Action@master
      env: 
        FTP_SERVER :  ${{ secrets.FTP_SERVER }}
        FTP_PASSWORD :  ${{ secrets.FTP_PASSWORD }}
        FTP_USERNAME :  ${{ secrets.FTP_USERNAME }}
        LOCAL_DIR : ${{ secrets.LOCAL_DIR }}

LOCAL_DIR secret value is: /build

@SamKirkland
Copy link
Owner

Hey!

Change the LOCAL_DIR value to "build" (no quotes), my ReadMe file example was bad and made it seem like the path needed to start with "/", I've fixed it.

I've also added a full blown example of Here to verify everything works :)

Let me know if everything starts working and i'll close the ticket

@bledar
Copy link
Author

bledar commented Sep 1, 2019

Hey, now is working perfectly with relative path.
Thank you!

@SamKirkland SamKirkland self-assigned this Sep 16, 2019
@SamKirkland SamKirkland added bug Something isn't working question Further information is requested and removed question Further information is requested labels Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants