Skip to content

Sync file is created on ftp root level instead of in the specified server-dir folder #231

Open
@samuelT2

Description

@samuelT2

Bug Description
When running an action, the ".ftp-deploy-sync-state.json" file is created/updated on ftp root level instead of in the specified server-dir folder.

My Action Config

name: xx.xx.xx / TEST deployment

on:
  push:
    branches: [ dev_integration ]
  pull_request:
    branches: [ dev_integration ]
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: npm install
        run: |
          npm install

      - name: npm build standalone
        run: |
          npm run build -- --mode staging
          
      - name: FTP Deploy (Staging)
        uses: SamKirkland/FTP-Deploy-Action@4.0.0
        with:
          server: xx.xx
          username: xx@xx.xx
          password: ${{ secrets.FTP_DEPLOYMENT_USER }}
          local-dir: ./dist/
          server-dir: folder_x/

Let me know if the full action log is also needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions