Skip to content

Commit 587c64d

Browse files
committed
chore(ci): commit the built libraries on release
1 parent 4cdb082 commit 587c64d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/packagist.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,20 @@ jobs:
6060
merge-multiple: true
6161

6262
- run: |
63-
ls lib/
6463
if ! git diff --quiet -- lib/; then
6564
git config user.name "${GITHUB_ACTOR}"
6665
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
6766
68-
git add lib/
67+
git add lib/*
6968
git commit -m "ci: update shared libraries [skip ci]"
7069
git show
71-
# git push
70+
git push
7271
else
7372
echo "No changes in lib/"
7473
fi
7574
76-
# - name: Update Packagist
77-
# run: |
78-
# curl -XPOST -H'content-type:application/json' \
79-
# "https://packagist.org/api/update-package?username=bfabio&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}" \
80-
# -d'{"repository":{"url":"https://github.com/bfabio/publiccode-parser-php"}}'
75+
- name: Update Packagist
76+
run: |
77+
curl -XPOST -H'content-type:application/json' \
78+
"https://packagist.org/api/update-package?username=bfabio&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}" \
79+
-d'{"repository":{"url":"https://github.com/bfabio/publiccode-parser-php"}}'

0 commit comments

Comments
 (0)