Skip to content

Commit f714aff

Browse files
authored
ci(swagger-ui-packagist-release): add GA workflow for release (#10499)
1 parent 2574351 commit f714aff

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release SwaggerUI to Packagist
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Release SwaggerUI"]
6+
types:
7+
- completed
8+
branches: [ master ]
9+
10+
jobs:
11+
release-swagger-ui-packagist:
12+
if: github.event.workflow_run.conclusion == 'success'
13+
name: Release swagger-ui to packagist
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Update SwaggerUI packagist package
17+
run: |
18+
curl --fail -X POST \
19+
-H "Content-Type: application/json" \
20+
"https://packagist.org/api/update-package?username=${{ secrets.PACKAGIST_USER }}&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}" \
21+
-d "{\"repository\":{\"url\":\"https://packagist.org/packages/swagger-api/swagger-ui\"}}"

0 commit comments

Comments
 (0)