Skip to content

Commit 231dcd8

Browse files
committed
ci: add GitHub Actions workflow to automatically update Packagist on push and tags
1 parent 5805866 commit 231dcd8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
```yaml
3+
name: Update Packagist
4+
5+
on:
6+
push:
7+
branches: [ main, master ]
8+
tags: [ 'v*' ]
9+
10+
jobs:
11+
update-packagist:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Update Packagist
16+
run: |
17+
curl -XPOST -H "content-type:application/json" \
18+
"https://packagist.org/api/update-package?username=wardvisual&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}" \
19+
-d '{"repository":{"url":"https://github.com/wardvisual/warvilphp"}}'

0 commit comments

Comments
 (0)