Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

dangerous-clean-slate broked upload path #507

Open
@Aeknasd145

Description

@Aeknasd145

Bug Description
I useddangerous-clean-slate: true in my deploy.yml but when i used that with exclude function it uploaded all files to one of my excluded folder. My ftp account has access to main directory of website. I tried server-dir like '/' and './' but both uploaded to one of the excluded folder (especially the deepest path). But when i deleteddangerous-clean-slate: true, everything worked as expected. So, i believe thatdangerous-clean-slate: true is not working properly withexclude and probebly trying to find deepest path and upload all repo inside it. Also, i try to write path to server-dir, then it created that folder and uploaded there, so it probably only occur when used main directory.

My Action Config

name:FTP Deployon:push:branches:      -master# Trigger only on push to main branchjobs:ftp-deploy:runs-on:ubuntu-lateststeps:      -name:Checkout repositoryuses:actions/checkout@v3      -name:Deploy to FTP serveruses:SamKirkland/FTP-Deploy-Action@v4.3.4with:server:${{ secrets.FTP_SERVER }}username:${{ secrets.FTP_USERNAME }}password:${{ secrets.FTP_PASSWORD }}server-dir:./state-name:.ftp-deploy-sync-state.jsonexclude:|            .git/**            .github/**            custom/folder/**            custom/foler/2/**            **/error_log            *session*            *madeline*            *.log            *.zip            *.tar.gz

My Action Log

🗑️ Removing all files on the server because 'dangerous-clean-slate' was set, this will make the deployment very slow...----------------------------------------------------------------No file exists on the server "/website.com/.ftp-deploy-sync-state.json" - this must be your first publish! 🎉The first publish will take a while... but once the initial sync is done only differences are published!If you get this message and its NOT your first publish, something is wrong.----------------------------------------------------------------Local Files:9,867Server Files:0----------------------------------------------------------------Calculating differences between client & server.... worked as expected only issue is created and uploaded folders and files to deepest path insted server-dir.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp