Compare commits

...

6 Commits

Author SHA1 Message Date
wrenge 3bc73375c4 Packages path fix
Publish PHP Package / docker (push) Successful in 5s Details
2024-09-12 10:32:32 +03:00
Pavel Shevaev 1d5a3744ce Добавить .gitea/workflows/build_composer.yaml
Publish PHP Package / docker (push) Successful in 5s Details
2024-02-13 12:52:36 +03:00
Pavel Shevaev 7171c1a795 Изменил(а) на 'composer.json' 2023-10-24 18:28:19 +03:00
Pavel Shevaev 3cc9c5e5b5 Tweaking composer autoload 2023-10-24 17:32:09 +03:00
Pavel Shevaev a7481a174e Изменил(а) на 'composer.json' 2023-10-23 15:33:59 +03:00
Pavel Shevaev 4ead13a1e6 Изменил(а) на 'composer.json' 2023-10-23 15:31:57 +03:00
3 changed files with 32 additions and 6 deletions

View File

@ -0,0 +1,28 @@
name: Publish PHP Package
on:
push:
tags:
- 'v*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get tag name
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: zip and send
run: |
ls -la
apt-get update -y
apt-get install -y zip
cd ../
zip -r ${{ gitea.event.repository.name }}.zip ${{ gitea.event.repository.name }} -x '*.git*'
curl -v \
--user composer-pbl:${{ secrets.COMPOSER_PSWD }} \
--upload-file ${{ gitea.event.repository.name }}.zip \
https://git.bit5.ru/api/packages/bit/composer?version=${{ env.TAG }}

View File

@ -1,11 +1,9 @@
{ {
"name": "bit/taskman_upm", "name": "bit/taskman_upm",
"description": "taskman UPM utils", "description": "taskman UPM utils",
"homepage": "https://git.bit5.ru/composer/taskman_upm", "homepage": "https://git.bit5.ru/bit/taskman_upm",
"require": { "require": {
"php": ">=7.4" "php": ">=7.4",
}, "bit/taskman_git" : "^v1.0.0"
"autoload": {
"classmap": ["upm.inc.php"]
} }
} }

View File

@ -49,7 +49,7 @@ task('upm_vendor_push', function($args) {
$relpath = $args[0]; $relpath = $args[0];
$commit_msg = $args[1]; $commit_msg = $args[1];
$repo = realpath("$GAME_ROOT/unity/packages/$relpath"); $repo = realpath("$GAME_ROOT/unity/Packages/$relpath");
if(!$repo) if(!$repo)
throw new Exception("Failed to find a valid directory for '$relpath'\n"); throw new Exception("Failed to find a valid directory for '$relpath'\n");