8000 Add automated Fury uploads · symfony-cli/symfony-cli@d96ec9f · GitHub
[go: up one dir, main page]

Skip to content

Commit d96ec9f

Browse files
committed
Add automated Fury uploads
1 parent 8230e07 commit d96ec9f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/releaser.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,18 @@ jobs:
6464
with:
6565
retention-days: 5
6666
path: dist
67+
-
68+
name: Fury Uploads
69+
env:
70+
FURY_PUSH_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}
71+
if: startsWith(github.ref, 'refs/tags/v')
72+
run: |
73+
URLS=`curl -fsSL "https://api.github.com/repos/symfony-cli/symfony-cli/releases/latest" | jq -r '.assets[] | select(.name | match("(deb|rpm)$")).browser_download_url'`
74+
for URL in $URLS
75+
do
76+
readarray -d "/" -t arr <<< "$URL"
77+
NAME=${arr[-1]}
78+
curl -fsSL $URL > /tmp/$NAME
79+
curl https://$FURY_PUSH_TOKEN@push.fury.io/symfony/ -F package=@/tmp/$NAME
80+
unlink /tmp/$NAME
81+
done

0 commit comments

Comments
 (0)
0