Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
|
@ -1,28 +0,0 @@
|
|||
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 }}
|
|
@ -1,9 +1,11 @@
|
|||
{
|
||||
"name": "bit/taskman_upm",
|
||||
"description": "taskman UPM utils",
|
||||
"homepage": "https://git.bit5.ru/bit/taskman_upm",
|
||||
"homepage": "https://git.bit5.ru/composer/taskman_upm",
|
||||
"require": {
|
||||
"php": ">=7.4",
|
||||
"bit/taskman_git" : "^v1.0.0"
|
||||
"php": ">=7.4"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": ["upm.inc.php"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ task('upm_vendor_push', function($args) {
|
|||
|
||||
$relpath = $args[0];
|
||||
$commit_msg = $args[1];
|
||||
$repo = realpath("$GAME_ROOT/unity/Packages/$relpath");
|
||||
$repo = realpath("$GAME_ROOT/unity/packages/$relpath");
|
||||
|
||||
if(!$repo)
|
||||
throw new Exception("Failed to find a valid directory for '$relpath'\n");
|
||||
|
|
Loading…
Reference in New Issue