首页 > 解决方案 > 排除 ftp-deploy 中的密钥故障

问题描述

我正在使用 SamKirkland/FTP-Deploy-Action 将我的文件部署到我的服务器,
但关键的“排除”实际上并没有排除 Workspace 和我的资源文件夹,它适用于 .git 和 .github 文件夹。(我猜问题在于排除键的值语法,但我找不到适合我的文件夹的那个。)
我也不想使用 .gitignore bc 我希望我的资源文件夹在我的存储库中。

name:  Deploy laravel

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  web-deploy:
    name:  Deploy
    runs-on: ubuntu-latest
    steps:
      - name:  Get latest code
        uses: actions/checkout@v2.3.2

      - name:  Sync files
        uses: SamKirkland/FTP-Deploy-Action@4.0.0
        with:
          server: ${{ secrets.FTP_HOST }}
          username: ${{ secrets.FTP_USERNAME }}
          password: ${{ secrets.FTP_PASSWORD }}
          exclude: .github** .github*/** node_modules** node_modules*/** resources/js** resources/js*/** resources/css** resources/css*/** resources/sass* resources/sass*/** Workspace* Workspace*/** .vscode* .vscode*/** .gitignore* .gitignore*/**  .gitattributes* .gitattributes*/**

标签: gitgithubnetworkingserverworkflow

解决方案


问题出在github网站上。
github的action的状态转变事件!
我应该查看github状态页面。


推荐阅读