Skip to content

Commit 2a73a8a

Browse files
fix(publish.yml): github action publisher
1 parent 341bb89 commit 2a73a8a

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
release:
8+
types: [published]
79

810
jobs:
911
publish:
1012
name: Publish package
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: Publish to Packagist
14-
uses: packagist/publish@v1
15-
with:
16-
package-name: mrnaeem4/ci4-request-analysis
17-
username: ${{ secrets.PACKAGIST_USERNAME }}
18-
token: ${{ secrets.PACKAGIST_TOKEN }}
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/ci4-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

Comments
 (0)