mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 19:04:40 +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
|
||||
on: [create]
|
||||
on:
|
||||
release:
|
||||
types: [released]
|
||||
jobs:
|
||||
run:
|
||||
runs-on: Linux
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user