ci: 迁移到 Gitea Actions

This commit is contained in:
李东云
2023-10-23 20:27:14 +08:00
parent dd690e228e
commit 8d6c0189a0
3 changed files with 107 additions and 100 deletions

View 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 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 }}."

View File

@@ -31,12 +31,11 @@
"phpunit/phpunit": "^9.6.9",
"swoole/ide-helper": "^4.8.13"
},
"minimum-stability": "dev",
"minimum-stability": "alpha",
"prefer-stable": true,
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"secure-http": false,
"allow-plugins": {
"pestphp/pest-plugin": true
}
@@ -54,9 +53,9 @@
"analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config"
},
"repositories": {
"lux-map": {
"nest": {
"type": "composer",
"url": "https://satis.luxcreo.cn/"
"url": "https://nest.doylee.cn/api/packages/HDK/composer"
},
"packagist": {
"type": "composer",

172
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "608c3ff0c27947f5c98f228467bdb831",
"content-hash": "8c89b72e47887d905ae56b43af1bb37b",
"packages": [
{
"name": "composer/ca-bundle",
@@ -169,16 +169,16 @@
},
{
"name": "composer/composer",
"version": "2.6.3",
"version": "2.6.4",
"source": {
"type": "git",
"url": "https://github.com/composer/composer.git",
"reference": "ff477832e6d838a736556d4a39a3b80f4412abfd"
"reference": "d75d17c16a863438027d1d96401cddcd6aa5bb60"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/composer/zipball/ff477832e6d838a736556d4a39a3b80f4412abfd",
"reference": "ff477832e6d838a736556d4a39a3b80f4412abfd",
"url": "https://api.github.com/repos/composer/composer/zipball/d75d17c16a863438027d1d96401cddcd6aa5bb60",
"reference": "d75d17c16a863438027d1d96401cddcd6aa5bb60",
"shasum": "",
"mirrors": [
{
@@ -269,7 +269,7 @@
"irc": "ircs://irc.libera.chat:6697/composer",
"issues": "https://github.com/composer/composer/issues",
"security": "https://github.com/composer/composer/security/policy",
"source": "https://github.com/composer/composer/tree/2.6.3"
"source": "https://github.com/composer/composer/tree/2.6.4"
},
"funding": [
{
@@ -285,7 +285,7 @@
"type": "tidelift"
}
],
"time": "2023-09-15T07:38:22+00:00"
"time": "2023-09-29T08:54:47+00:00"
},
{
"name": "composer/metadata-minifier",
@@ -1461,16 +1461,16 @@
},
{
"name": "hyperf/codec",
"version": "v3.0.37",
"version": "v3.0.38",
"source": {
"type": "git",
"url": "https://github.com/hyperf/codec.git",
"reference": "7eb45c26990e177487dba9790408d5ad91cf1774"
"reference": "dfe4ff846540362c5a56e9ade6bdeef16d264fb8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/codec/zipball/7eb45c26990e177487dba9790408d5ad91cf1774",
"reference": "7eb45c26990e177487dba9790408d5ad91cf1774",
"url": "https://api.github.com/repos/hyperf/codec/zipball/dfe4ff846540362c5a56e9ade6bdeef16d264fb8",
"reference": "dfe4ff846540362c5a56e9ade6bdeef16d264fb8",
"shasum": "",
"mirrors": [
{
@@ -1517,7 +1517,7 @@
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"time": "2023-09-19T01:50:18+00:00"
"time": "2023-09-30T06:00:08+00:00"
},
{
"name": "hyperf/collection",
@@ -2126,16 +2126,16 @@
},
{
"name": "hyperf/engine",
"version": "v2.10.1",
"version": "v2.10.3",
"source": {
"type": "git",
"url": "https://github.com/hyperf/engine.git",
"reference": "a8092a3a9dab87dfa3b5d008219768e8dcd3db7e"
"reference": "7e7238708f29f39df643aba25485ba1c075943c1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/engine/zipball/a8092a3a9dab87dfa3b5d008219768e8dcd3db7e",
"reference": "a8092a3a9dab87dfa3b5d008219768e8dcd3db7e",
"url": "https://api.github.com/repos/hyperf/engine/zipball/7e7238708f29f39df643aba25485ba1c075943c1",
"reference": "7e7238708f29f39df643aba25485ba1c075943c1",
"shasum": "",
"mirrors": [
{
@@ -2196,9 +2196,9 @@
],
"support": {
"issues": "https://github.com/hyperf/engine/issues",
"source": "https://github.com/hyperf/engine/tree/v2.10.1"
"source": "https://github.com/hyperf/engine/tree/v2.10.3"
},
"time": "2023-09-26T06:23:05+00:00"
"time": "2023-09-30T14:57:09+00:00"
},
{
"name": "hyperf/engine-contract",
@@ -2958,16 +2958,16 @@
},
{
"name": "hyperf/redis",
"version": "v3.0.37",
"version": "v3.0.40",
"source": {
"type": "git",
"url": "https://github.com/hyperf/redis.git",
"reference": "270720a8fe23ca4807ac03eaad9f888f19c945f8"
"reference": "df1c2a1fc19b9c8b4752219eca31562719d3996f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/redis/zipball/270720a8fe23ca4807ac03eaad9f888f19c945f8",
"reference": "270720a8fe23ca4807ac03eaad9f888f19c945f8",
"url": "https://api.github.com/repos/hyperf/redis/zipball/df1c2a1fc19b9c8b4752219eca31562719d3996f",
"reference": "df1c2a1fc19b9c8b4752219eca31562719d3996f",
"shasum": "",
"mirrors": [
{
@@ -2977,7 +2977,7 @@
]
},
"require": {
"ext-redis": "<6.0",
"ext-redis": "^5.0|^6.0",
"hyperf/contract": "~3.0.0",
"hyperf/pool": "~3.0.0",
"hyperf/support": "~3.0.0",
@@ -3022,7 +3022,7 @@
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"time": "2023-09-19T01:50:18+00:00"
"time": "2023-10-13T13:04:18+00:00"
},
{
"name": "hyperf/resource",
@@ -3153,16 +3153,16 @@
},
{
"name": "hyperf/server",
"version": "v3.0.37",
"version": "v3.0.39",
"source": {
"type": "git",
"url": "https://github.com/hyperf/server.git",
"reference": "3702c58c3617ec2e845e1f2d13a903b92be63100"
"reference": "b8e305dc7583762a5e3815b1da984e7cf2f13388"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/server/zipball/3702c58c3617ec2e845e1f2d13a903b92be63100",
"reference": "3702c58c3617ec2e845e1f2d13a903b92be63100",
"url": "https://api.github.com/repos/hyperf/server/zipball/b8e305dc7583762a5e3815b1da984e7cf2f13388",
"reference": "b8e305dc7583762a5e3815b1da984e7cf2f13388",
"shasum": "",
"mirrors": [
{
@@ -3219,20 +3219,20 @@
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"time": "2023-09-19T01:50:18+00:00"
"time": "2023-10-08T15:14:41+00:00"
},
{
"name": "hyperf/stringable",
"version": "v3.0.37",
"version": "v3.0.40",
"source": {
"type": "git",
"url": "https://github.com/hyperf/stringable.git",
"reference": "63d7ce080e38e72205a181541abab82dbe84270b"
"reference": "103f3a9e625536b8c2f79972c90494d765d0a32a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/stringable/zipball/63d7ce080e38e72205a181541abab82dbe84270b",
"reference": "63d7ce080e38e72205a181541abab82dbe84270b",
"url": "https://api.github.com/repos/hyperf/stringable/zipball/103f3a9e625536b8c2f79972c90494d765d0a32a",
"reference": "103f3a9e625536b8c2f79972c90494d765d0a32a",
"shasum": "",
"mirrors": [
{
@@ -3286,7 +3286,7 @@
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"time": "2023-09-19T01:50:18+00:00"
"time": "2023-10-18T01:12:57+00:00"
},
{
"name": "hyperf/support",
@@ -3601,16 +3601,16 @@
},
{
"name": "justinrainbow/json-schema",
"version": "5.2.12",
"version": "v5.2.13",
"source": {
"type": "git",
"url": "https://github.com/justinrainbow/json-schema.git",
"reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60"
"reference": "fbbe7e5d79f618997bc3332a6f49246036c45793"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/ad87d5a5ca981228e0e205c2bc7dfb8e24559b60",
"reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60",
"url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/fbbe7e5d79f618997bc3332a6f49246036c45793",
"reference": "fbbe7e5d79f618997bc3332a6f49246036c45793",
"shasum": "",
"mirrors": [
{
@@ -3671,9 +3671,9 @@
],
"support": {
"issues": "https://github.com/justinrainbow/json-schema/issues",
"source": "https://github.com/justinrainbow/json-schema/tree/5.2.12"
"source": "https://github.com/justinrainbow/json-schema/tree/v5.2.13"
},
"time": "2022-04-13T08:02:27+00:00"
"time": "2023-09-26T02:20:38+00:00"
},
{
"name": "laminas/laminas-mime",
@@ -5229,18 +5229,18 @@
},
{
"name": "singularity/hdk-core",
"version": "1.0.0-alpha.5",
"source": {
"type": "git",
"url": "http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore.git",
"reference": "2d6d12e1c3694088c9044d2495dc8b569220974d"
"version": "1.0.0-alpha.13",
"dist": {
"type": "zip",
"url": "https://nest.doylee.cn/api/packages/HDK/composer/files/singularity%2Fhdk-core/1.0.0-alpha.13/singularity-hdk-core.1.0.0-alpha.13.zip",
"shasum": "0334bcdf56f646eea7656f3d28be71989d5d68bf"
},
"require": {
"composer/composer": ">=2.0",
"ergebnis/http-method": "^2.2",
"ext-dom": "*",
"ext-libxml": "*",
"ext-redis": "^5.3",
"ext-redis": "^5.3|^6.0",
"ext-swoole": "*",
"hyperf/config": "^3.0.18",
"hyperf/constants": "^3.0.18",
@@ -5307,26 +5307,6 @@
"Singularity\\HDK\\Test\\Core\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [],
"test": [
"rm -rf runtime",
"Composer\\Config::disableProcessTimeout",
"co-pest --prepend tests/bootstrap.php -c phpunit.xml --colors=always $1"
],
"cs-fix": [
"vendor/bin/php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes"
],
"analyse": [
"vendor/bin/phpstan analyse $1"
],
"ci": [
"@analyse publish/ src/ tests/",
"@cs-fix",
"@test --ci",
"echo CI Success"
]
},
"license": [
"MIT"
],
@@ -5337,7 +5317,7 @@
}
],
"description": "Common Hyperf Development Kit",
"time": "2023-09-26T08:23:29+00:00"
"time": "2023-10-23T19:43:26+08:00"
},
{
"name": "symfony/console",
@@ -5579,16 +5559,16 @@
},
{
"name": "symfony/finder",
"version": "v6.3.3",
"version": "v6.3.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "9915db259f67d21eefee768c1abcf1cc61b1fc9e"
"reference": "a1b31d88c0e998168ca7792f222cbecee47428c4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/9915db259f67d21eefee768c1abcf1cc61b1fc9e",
"reference": "9915db259f67d21eefee768c1abcf1cc61b1fc9e",
"url": "https://api.github.com/repos/symfony/finder/zipball/a1b31d88c0e998168ca7792f222cbecee47428c4",
"reference": "a1b31d88c0e998168ca7792f222cbecee47428c4",
"shasum": "",
"mirrors": [
{
@@ -5629,7 +5609,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/finder/tree/v6.3.3"
"source": "https://github.com/symfony/finder/tree/v6.3.5"
},
"funding": [
{
@@ -5645,20 +5625,20 @@
"type": "tidelift"
}
],
"time": "2023-07-31T08:31:44+00:00"
"time": "2023-09-26T12:56:25+00:00"
},
{
"name": "symfony/http-foundation",
"version": "v6.3.4",
"version": "v6.3.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "cac1556fdfdf6719668181974104e6fcfa60e844"
"reference": "c186627f52febe09c6d5270b04f8462687a250a6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/cac1556fdfdf6719668181974104e6fcfa60e844",
"reference": "cac1556fdfdf6719668181974104e6fcfa60e844",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/c186627f52febe09c6d5270b04f8462687a250a6",
"reference": "c186627f52febe09c6d5270b04f8462687a250a6",
"shasum": "",
"mirrors": [
{
@@ -5674,12 +5654,12 @@
"symfony/polyfill-php83": "^1.27"
},
"conflict": {
"symfony/cache": "<6.2"
"symfony/cache": "<6.3"
},
"require-dev": {
"doctrine/dbal": "^2.13.1|^3.0",
"doctrine/dbal": "^2.13.1|^3|^4",
"predis/predis": "^1.1|^2.0",
"symfony/cache": "^5.4|^6.0",
"symfony/cache": "^6.3",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/expression-language": "^5.4|^6.0",
"symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4",
@@ -5712,7 +5692,7 @@
"description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-foundation/tree/v6.3.4"
"source": "https://github.com/symfony/http-foundation/tree/v6.3.6"
},
"funding": [
{
@@ -5728,7 +5708,7 @@
"type": "tidelift"
}
],
"time": "2023-08-22T08:20:46+00:00"
"time": "2023-10-17T11:32:53+00:00"
},
{
"name": "symfony/polyfill-ctype",
@@ -6586,16 +6566,16 @@
},
{
"name": "symfony/string",
"version": "v6.3.2",
"version": "v6.3.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
"reference": "53d1a83225002635bca3482fcbf963001313fb68"
"reference": "13d76d0fb049051ed12a04bef4f9de8715bea339"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/53d1a83225002635bca3482fcbf963001313fb68",
"reference": "53d1a83225002635bca3482fcbf963001313fb68",
"url": "https://api.github.com/repos/symfony/string/zipball/13d76d0fb049051ed12a04bef4f9de8715bea339",
"reference": "13d76d0fb049051ed12a04bef4f9de8715bea339",
"shasum": "",
"mirrors": [
{
@@ -6658,7 +6638,7 @@
"utf8"
],
"support": {
"source": "https://github.com/symfony/string/tree/v6.3.2"
"source": "https://github.com/symfony/string/tree/v6.3.5"
},
"funding": [
{
@@ -6674,7 +6654,7 @@
"type": "tidelift"
}
],
"time": "2023-07-05T08:41:27+00:00"
"time": "2023-09-18T10:38:32+00:00"
},
{
"name": "teapot/status-code",
@@ -7507,16 +7487,16 @@
},
{
"name": "phpunit/php-code-coverage",
"version": "9.2.28",
"version": "9.2.29",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "7134a5ccaaf0f1c92a4f5501a6c9f98ac4dcc0ef"
"reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7134a5ccaaf0f1c92a4f5501a6c9f98ac4dcc0ef",
"reference": "7134a5ccaaf0f1c92a4f5501a6c9f98ac4dcc0ef",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6a3a87ac2bbe33b25042753df8195ba4aa534c76",
"reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76",
"shasum": "",
"mirrors": [
{
@@ -7579,7 +7559,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
"security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.28"
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.29"
},
"funding": [
{
@@ -7587,7 +7567,7 @@
"type": "github"
}
],
"time": "2023-09-12T14:36:20+00:00"
"time": "2023-09-19T04:57:46+00:00"
},
{
"name": "phpunit/php-file-iterator",
@@ -9119,7 +9099,7 @@
}
],
"aliases": [],
"minimum-stability": "dev",
"minimum-stability": "alpha",
"stability-flags": [],
"prefer-stable": true,
"prefer-lowest": false,
@@ -9127,5 +9107,5 @@
"php": ">=8.1"
},
"platform-dev": [],
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.6.0"
}