git - 排除 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*/**
解决方案
问题出在github网站上。
github的action的状态转变事件!
我应该查看github状态页面。
推荐阅读
- laravel - 使用刀片组件和 alpinejs 时如何获取正确的数据?
- google-sheets - 谷歌表格中的 SUMIF 一个月,如果一列包含文本
- java - 为什么这个 lambda 表达式使用 & 符号转换?
- c - Doxygen 没有记录嵌套目录中的标题
- java - 希望将动态数据作为 jsonpath 请求传递
- javascript - fetch 返回 SyntaxError: Unexpected token T in JSON at position 0
- c# - 自动拟合后获取excel行的高度然后增加它 Epplus
- python-3.x - 检查机器人的管理员权限 pytelegrambotapi python
- python - 根据另一列检查数据框中的多列的高性能方法
- numpy - 将numpy数组(图像)转换为pdf base64