Skip to content

Commit

Permalink
Add automated Fury uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 22, 2022
1 parent 8230e07 commit d96ec9f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,18 @@ jobs:
with:
retention-days: 5
path: dist
-
name: Fury Uploads
env:
FURY_PUSH_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}
if: startsWith(github.ref, 'refs/tags/v')
run: |
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'`
for URL in $URLS
do
readarray -d "/" -t arr <<< "$URL"
NAME=${arr[-1]}
curl -fsSL $URL > /tmp/$NAME
curl https://$FURY_PUSH_TOKEN@push.fury.io/symfony/ -F package=@/tmp/$NAME
unlink /tmp/$NAME
done

0 comments on commit d96ec9f

Please sign in to comment.