1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 21:14:43 +01:00

Upload to github releases

This commit is contained in:
Daniil Gentili 2022-04-30 21:54:03 +02:00
parent 206cdcc595
commit 0d47a09cc4
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,7 @@
name: build
on: [create]
on:
release:
types: [released]
jobs:
run:
runs-on: Linux

View File

@ -153,6 +153,10 @@ git config --global user.name "Github Actions"
input=$PWD
cd "$madelinePath"
gh release upload "$TAG" ""$input/madeline$php$branch.phar""
echo "Locking..."
touch /tmp/lock
exec {FD}<>/tmp/lock
@ -162,7 +166,6 @@ echo "Locked!"
cd ~/MadelineProtoPhar
git pull
cp "$input/madeline$php$branch.phar" "madeline$php.phar"
cp "$input/tools/phar.php" .
echo -n "$COMMIT-$php" > release$php