mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 23:34:44 +01:00
Upload to github releases
This commit is contained in:
parent
206cdcc595
commit
0d47a09cc4
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -1,5 +1,7 @@
|
|||||||
name: build
|
name: build
|
||||||
on: [create]
|
on:
|
||||||
|
release:
|
||||||
|
types: [released]
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
runs-on: Linux
|
runs-on: Linux
|
||||||
|
@ -153,6 +153,10 @@ git config --global user.name "Github Actions"
|
|||||||
|
|
||||||
input=$PWD
|
input=$PWD
|
||||||
|
|
||||||
|
cd "$madelinePath"
|
||||||
|
|
||||||
|
gh release upload "$TAG" ""$input/madeline$php$branch.phar""
|
||||||
|
|
||||||
echo "Locking..."
|
echo "Locking..."
|
||||||
touch /tmp/lock
|
touch /tmp/lock
|
||||||
exec {FD}<>/tmp/lock
|
exec {FD}<>/tmp/lock
|
||||||
@ -162,7 +166,6 @@ echo "Locked!"
|
|||||||
cd ~/MadelineProtoPhar
|
cd ~/MadelineProtoPhar
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
cp "$input/madeline$php$branch.phar" "madeline$php.phar"
|
|
||||||
cp "$input/tools/phar.php" .
|
cp "$input/tools/phar.php" .
|
||||||
echo -n "$COMMIT-$php" > release$php
|
echo -n "$COMMIT-$php" > release$php
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user