1 parent 4517a4a commit 67ec04bCopy full SHA for 67ec04b
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,25 @@
1
+name: Publish to Packagist
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ release:
8
+ types: [published]
9
10
+jobs:
11
+ publish:
12
+ name: Publish package
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Trigger Packagist update
16
+ env:
17
+ PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
18
+ PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
19
+ PACKAGIST_REPOSITORY: https://github.com/mrnaeem4/ci3-request-analysis
20
+ run: |
21
+ curl -sS -X POST \
22
+ -H 'Content-Type: application/json' \
23
+ -H "Authorization: Bearer ${PACKAGIST_USERNAME}:${PACKAGIST_TOKEN}" \
24
+ -d "{\"repository\":\"${PACKAGIST_REPOSITORY}\"}" \
25
+ https://packagist.org/api/update-package
0 commit comments