chore: 修改文件权限并添加脚本和CI配置
修改多个文件的权限为755,添加release.sh和docker-env.sh脚本,配置Gitea的CI工作流和版本更新日志配置文件
This commit is contained in:
28
.gitea/workflows/publish_on_tagged.yml
Normal file
28
.gitea/workflows/publish_on_tagged.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Release development version to registry
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '**.**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Publish on Tagged:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
|
- name: List files in the repository
|
||||||
|
run: |
|
||||||
|
ls ${{ gitea.workspace }}
|
||||||
|
- name: Zip files in the repository
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install zip
|
||||||
|
zip -r dist.zip *
|
||||||
|
- name: Publish to registry
|
||||||
|
run: |
|
||||||
|
curl --user ch4o5:4fd300672472e666014314c1c94c604c634165a9 \
|
||||||
|
--upload-file ./dist.zip \
|
||||||
|
https://nest.doylee.cn/api/packages/HDK/composer?version=${{ gitea.ref_name }}
|
||||||
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
68
.versionrc
Normal file
68
.versionrc
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
{
|
||||||
|
"header": "# 版本更新日志",
|
||||||
|
"preMajor": true,
|
||||||
|
"types": [
|
||||||
|
{
|
||||||
|
"type": "feat",
|
||||||
|
"section": "✨ Features | 新功能"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fix",
|
||||||
|
"section": "🐛 Bug Fixes | Bug 修复"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "init",
|
||||||
|
"section": "🎉 Init | 初始化"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "docs",
|
||||||
|
"section": "✏️ Documentation | 文档"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "style",
|
||||||
|
"section": "💄 Styles | 风格"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "refactor",
|
||||||
|
"section": "♻️ Code Refactoring | 代码重构"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "perf",
|
||||||
|
"section": "⚡ Performance Improvements | 性能优化"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "tests",
|
||||||
|
"section": "✅ Tests | 测试"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "test",
|
||||||
|
"section": "✅ Tests | 测试"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "revert",
|
||||||
|
"section": "⏪ Revert | 回退"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "build",
|
||||||
|
"section": "📦 Build System | 打包构建"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "chore",
|
||||||
|
"section": "🚀 Chore | 构建/工程依赖/工具"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "ci",
|
||||||
|
"section": "👷 Continuous Integration | CI 配置"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"bumpFiles": [
|
||||||
|
{
|
||||||
|
"filename": "VERSION_TRACKER.txt",
|
||||||
|
"type": "plain-text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "composer.json",
|
||||||
|
"type": "json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
4
composer.json
Normal file → Executable file
4
composer.json
Normal file → Executable file
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "hyperf-admin/admin",
|
"name": "hdk/hdk-admin",
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -28,4 +28,4 @@
|
|||||||
"config": "HyperfAdmin\\Admin\\ConfigProvider"
|
"config": "HyperfAdmin\\Admin\\ConfigProvider"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
9
scripts/docker-env.sh
Executable file
9
scripts/docker-env.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
docker run \
|
||||||
|
--pull always \
|
||||||
|
-ti --rm --name "hdk-admin" \
|
||||||
|
-w "/srv/www" \
|
||||||
|
-v "$(pwd)":/srv/www \
|
||||||
|
-v ~/.ssh:/root/.ssh \
|
||||||
|
harbor.luxcreo.cn/library/hyperf:7.4-swoole /bin/ash
|
||||||
5
scripts/release.sh
Executable file
5
scripts/release.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
docker run --rm -it \
|
||||||
|
-v $(pwd):/app -e "GIT_AUTHOR_NAME=ch4o5" -e "EMAIL=li_dongyun@outlook.com" \
|
||||||
|
detouched/standard-version:latest $1
|
||||||
0
src/ConfigProvider.php
Normal file → Executable file
0
src/ConfigProvider.php
Normal file → Executable file
0
src/Controller/AdminAbstractController.php
Normal file → Executable file
0
src/Controller/AdminAbstractController.php
Normal file → Executable file
0
src/Controller/CommonConfigController.php
Normal file → Executable file
0
src/Controller/CommonConfigController.php
Normal file → Executable file
0
src/Controller/LogController.php
Normal file → Executable file
0
src/Controller/LogController.php
Normal file → Executable file
0
src/Controller/MenuController.php
Normal file → Executable file
0
src/Controller/MenuController.php
Normal file → Executable file
0
src/Controller/RoleController.php
Normal file → Executable file
0
src/Controller/RoleController.php
Normal file → Executable file
0
src/Controller/SystemController.php
Normal file → Executable file
0
src/Controller/SystemController.php
Normal file → Executable file
0
src/Controller/UploadController.php
Normal file → Executable file
0
src/Controller/UploadController.php
Normal file → Executable file
0
src/Controller/UserController.php
Normal file → Executable file
0
src/Controller/UserController.php
Normal file → Executable file
0
src/Crontab/ExportTask.php
Normal file → Executable file
0
src/Crontab/ExportTask.php
Normal file → Executable file
0
src/Install/InstallCommand.php
Normal file → Executable file
0
src/Install/InstallCommand.php
Normal file → Executable file
0
src/Install/UpdateCommand.php
Normal file → Executable file
0
src/Install/UpdateCommand.php
Normal file → Executable file
0
src/Install/install.sql
Normal file → Executable file
0
src/Install/install.sql
Normal file → Executable file
0
src/Middleware/AuthMiddleware.php
Normal file → Executable file
0
src/Middleware/AuthMiddleware.php
Normal file → Executable file
0
src/Middleware/PermissionMiddleware.php
Normal file → Executable file
0
src/Middleware/PermissionMiddleware.php
Normal file → Executable file
0
src/Model/CommonConfig.php
Normal file → Executable file
0
src/Model/CommonConfig.php
Normal file → Executable file
0
src/Model/ExportTasks.php
Normal file → Executable file
0
src/Model/ExportTasks.php
Normal file → Executable file
0
src/Model/FrontRoutes.php
Normal file → Executable file
0
src/Model/FrontRoutes.php
Normal file → Executable file
0
src/Model/GlobalConfig.php
Normal file → Executable file
0
src/Model/GlobalConfig.php
Normal file → Executable file
0
src/Model/OperatorLog.php
Normal file → Executable file
0
src/Model/OperatorLog.php
Normal file → Executable file
0
src/Model/RequestLog.php
Normal file → Executable file
0
src/Model/RequestLog.php
Normal file → Executable file
0
src/Model/Role.php
Normal file → Executable file
0
src/Model/Role.php
Normal file → Executable file
0
src/Model/RoleMenu.php
Normal file → Executable file
0
src/Model/RoleMenu.php
Normal file → Executable file
0
src/Model/User.php
Normal file → Executable file
0
src/Model/User.php
Normal file → Executable file
0
src/Model/UserRole.php
Normal file → Executable file
0
src/Model/UserRole.php
Normal file → Executable file
0
src/Model/Version.php
Normal file → Executable file
0
src/Model/Version.php
Normal file → Executable file
0
src/Model/Versionable.php
Normal file → Executable file
0
src/Model/Versionable.php
Normal file → Executable file
0
src/Service/AuthService.php
Normal file → Executable file
0
src/Service/AuthService.php
Normal file → Executable file
0
src/Service/CommonConfig.php
Normal file → Executable file
0
src/Service/CommonConfig.php
Normal file → Executable file
0
src/Service/ExportService.php
Normal file → Executable file
0
src/Service/ExportService.php
Normal file → Executable file
0
src/Service/GlobalConfig.php
Normal file → Executable file
0
src/Service/GlobalConfig.php
Normal file → Executable file
0
src/Service/Menu.php
Normal file → Executable file
0
src/Service/Menu.php
Normal file → Executable file
0
src/Service/ModuleProxy.php
Normal file → Executable file
0
src/Service/ModuleProxy.php
Normal file → Executable file
0
src/Service/OperatorLogService.php
Normal file → Executable file
0
src/Service/OperatorLogService.php
Normal file → Executable file
0
src/Service/PermissionService.php
Normal file → Executable file
0
src/Service/PermissionService.php
Normal file → Executable file
0
src/Service/UserService.php
Normal file → Executable file
0
src/Service/UserService.php
Normal file → Executable file
0
src/config/config.php
Normal file → Executable file
0
src/config/config.php
Normal file → Executable file
0
src/config/routes.php
Normal file → Executable file
0
src/config/routes.php
Normal file → Executable file
0
src/funcs/common.php
Normal file → Executable file
0
src/funcs/common.php
Normal file → Executable file
Reference in New Issue
Block a user