-
Notifications
You must be signed in to change notification settings - Fork 363
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
dist folder not uploaded #43
Comments
Update: removing dist from gitignore also doesn't work, perhaps because it is still considered "untracked" and not "changed"? |
Hey Joren, Version 3 will only upload tracked files by default (files committed to your github project). The reason for this change was so only diffs are uploaded rather than all files on every publish. This reduces publish time for large websites from hours to minutes but requires more setup initially. To resolve this you must create a This is actually the second issue about this today (see #42) so I'm going to make the instructions much more clear :) I'm going to close out this issue, let me know if this doesn't resolve the issue and i'll reopen. |
I understand. Extremely confusing that the I'll also reference git-ftp/git-ftp#325 just to point out that there is no glob support for .git-ftp-include which makes it a sub-optimal solution for certain projects, luckily I don't really need it for my project. Lastly, having your dist folder committed to git can be very strenuous in large corporate apps with lots of file splitting, where the amount of files can go into the thousands for the production-folder of the application. Using 2.0.0 may be the most acceptable solution for some people, just noting here that in 2.0.0 everything works fine :P |
Fair feedback. The major issue with using FTP for deployments is the lack of file diffing. Over the last year the majority of the feature requests on this action have been requests for performance improvements (make uploading faster). Going with git-ftp has some major trade-offs on initial setup. However git-ftp is much more consistent by leveraging existing git tracking rather than building a diffing library based on modified times (which has plenty of edge cases that will cause partial deployments). For the |
Bug Description
I want to use this action for uploading the resulting folder of
npm run build
which is a dist folder in root. My workflow properly builds it and listing the folders shows it's correct, but then the build folder is not uploaded to SFTP as intended.I might be mistaken but I think this has to do with it using git-ftp under the hood now since v3?
Which I think checks which files have been changed and committed?
The thing is, I have the /dist/ folder in my
.gitignore
, because I don't want to have that folder be part of my version control, because it isn't source code. It's production / distribution code, only to be built when I push something new to master, and then to be deployed on my server.My Action Config
I put the --all flag just to see if it would help but it doesn't.
My Action Log
I wasn't sure if the above is the action log you meant, let me know if you need more info.
Here's the repo btw: https://github.com/jorenbroekema/yc-bank-frontend/
The text was updated successfully, but these errors were encountered: