Bitbucket管道-无法将dist文件夹部署到我的服务器

Bitbucket管道-无法将dist文件夹部署到我的服务器,bitbucket,bitbucket-pipelines,Bitbucket,Bitbucket Pipelines,我正在尝试通过bitbucket管道将wordpress主题部署到服务器,它工作正常,但没有部署dist文件夹。我想这是因为我在.gitignore文件中添加了dist文件夹 这是我的bitbucket-pipelines.yml文件 - step: name: 'Deployment to Production' image: node:10.16.2 deployment: production trigger:

我正在尝试通过bitbucket管道将wordpress主题部署到服务器,它工作正常,但没有部署dist文件夹。我想这是因为我在.gitignore文件中添加了dist文件夹

这是我的bitbucket-pipelines.yml文件

    - step:

        name: 'Deployment to Production'

        image: node:10.16.2

        deployment: production

        trigger: 'manual'

        script:

          - npm install

          - npm test

          - yarn

          - yarn build:production

          - apt-get update

          - apt-get -qq install git-ftp

          - git ftp push --insecure --user $FTP_USER --passwd $FTP_PASS ftpes://ftp.mydomain.dev/public_html/wp-content/themes/cule --all
我遗漏了什么吗?我应该从.gitignore文件中删除dist文件夹吗

这是我的.git文件

.gitignore

.cache-loader
npm-debug.log
yarn-error.log
resources/assets/config-local.json
node_modules
dist

git ftp
将推送
中列出的所有未跟踪文件和文件夹。git ftp包括
文件。这是有案可查的

通过在存储库根目录中添加名为
.git ftp include
的文件,您的存储库至少可以配置为始终推送
dist
文件夹,其中包含以下内容:

!dist/
登记更多选项以有条件地更新
dist
文件夹