Commit Graph

18 Commits

Author SHA1 Message Date
661c7b87c1 Feat/surge customizable dirs (#49)
* feat: Allow customizing working_dir and dist_dir for Surge deployment

This commit introduces two new optional inputs to the `deploy-dist-to-surge` action:

- `working_dir`: Specifies the directory from which the Surge command should be run. Defaults to the repository root (`.`).
- `dist_dir`: Specifies the directory containing the built assets to deploy, relative to `working_dir`. Defaults to `dist`.

These changes provide more flexibility for projects where the build output is not in the default `dist` folder at the root of the repository.

Updated README.md with details on the new inputs and an example usage.

* feat: Allow customizing working_dir and dist_dir for Surge deployment

This commit introduces two new optional inputs to the `deploy-dist-to-surge` action:

- `working_dir`: Specifies the directory from which the Surge command should be run. Defaults to the repository root (`.`).
- `dist_dir`: Specifies the directory containing the built assets to deploy, relative to `working_dir`. Defaults to `dist`.

These changes provide more flexibility for projects where the build output is not in the default `dist` folder at the root of the repository.

Updated README.md with details on the new inputs and an example usage.
Also updated the test workflow `.github/workflows/deploy-dist-to-surge-tetst.yaml` to utilize and verify these new inputs.

* feat: 支持唯一测试域名并更新中文描述

此提交为 `deploy-dist-to-surge` 操作引入了 `domain_suffix` 输入,以允许在同一工作流程中为多次部署生成唯一的 Surge 域名,这对于测试至关重要。

同时包含先前对 `working_dir` 和 `dist_dir` 输入的支持,并更新了 `action.yml` 和 `README.md` 中的所有相关描述为中文。

测试工作流程已更新以使用 `domain_suffix` 并验证自定义目录和默认目录的部署。

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-07-05 11:56:31 +08:00
3bf0746912 为构建参数添加 BUILDKIT_INLINE_CACHE 选项,以优化 Docker 构建缓存 2025-05-11 19:48:00 +08:00
4470aa1363 更新缓存恢复键,以使用 GitHub 事件中的仓库 ID,增强缓存管理逻辑 2025-04-14 13:58:34 +08:00
2b8fce6a84 为设置 Node 环境的步骤添加名称,以提高可读性 2025-04-11 14:18:22 +08:00
5595f58c87 更新缓存恢复键,以使用 GitHub 仓库 ID 代替工作区路径,增强缓存管理逻辑 2025-04-11 14:16:47 +08:00
4ce6f13923 移除不必要的容器矩阵配置,简化工作流 2025-04-11 10:18:19 +08:00
f0c59be5c8 更新缓存恢复键,以包含工作区路径,增强缓存命中逻辑 2025-04-11 10:12:46 +08:00
7797ee90d2 加注释 2025-04-06 03:37:12 +08:00
9a7c4f5090 添加 package_json_file 输入以支持指定工作目录中的 package.json 2025-04-06 03:35:38 +08:00
d6f6c773a7 修复缓存命中状态的输出逻辑,并更新 pnpm 缓存保存条件 2025-04-06 03:31:55 +08:00
694d8c00ce 在工作流中添加显示缓存命中状态的步骤 2025-04-06 03:25:50 +08:00
4b718f4cee 在缓存保存步骤中添加输出缓存命中的日志 2025-04-06 03:23:23 +08:00
90b51303f2 添加 gh-packages-delete.sh 脚本以批量删除 GitHub 容器镜像版本 [no ci] 2025-04-06 00:55:13 +08:00
2a7a660cc4 setup-node-environment-test.yaml 2025-04-04 21:25:36 +08:00
4a3df28bbf 翻译工作流文件中的描述为中文 2025-04-04 16:44:19 +08:00
933864dde3 添加工作流以批量删除旧的 GitHub 运行 2025-04-04 16:40:37 +08:00
27132e0256 添加 gh-run-delete.sh 脚本以批量删除 GitHub 运行 [no ci] 2025-04-04 16:32:32 +08:00
b821c98ddd 2025-04-04 16:03:38 +08:00