Skip to content

Commit 44adca2

Browse files
committed
Add publish action
1 parent 00c432e commit 44adca2

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Release to Packagist
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Dispatch packagist update
10+
run: |
11+
curl -X POST https://packagist.org/api/update-package?username=${{ secrets.PACKAGIST_USERNAME }}&apiToken=${{ secrets.PACKAGIST_API_TOKEN }} \
12+
-d '{"repository":{"url":"https://github.com/detectlanguage/detectlanguage-php"}}' \
13+
-H "Content-Type: application/json"

0 commit comments

Comments
 (0)