Skip to content

Commit 60195e4

Browse files
committed
Add publishing to packagist on tag
1 parent 7d341a4 commit 60195e4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/packagist.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish package to Packagist
2+
on:
3+
push:
4+
tags:
5+
- *
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Publish Artifact
12+
run: curl -XPOST -H 'content-type:application/json' "https://packagist.org/api/update-package?username=messente.developers&apiToken=${API_TOKEN}" -d '{"repository":{"url":"https://packagist.org/packages/messente/messente-api-php"}}'
13+
env:
14+
API_TOKEN: ${{ secrets.API_TOKEN }}
15+
16+

0 commit comments

Comments
 (0)