parsaaghayi-backend/vendor/swagger-api/swagger-ui/.github/workflows/release-swagger-ui-packagist.yml
DevOps c9a688e80d
Some checks failed
Deploy Backend / deploy (push) Has been cancelled
chore: commit vendor directory for fully offline builds
2026-06-28 18:08:40 +00:00

22 lines
714 B
YAML

name: Release SwaggerUI to Packagist
on:
workflow_run:
workflows: ["Release SwaggerUI"]
types:
- completed
branches: [ master ]
jobs:
release-swagger-ui-packagist:
if: github.event.workflow_run.conclusion == 'success'
name: Release swagger-ui to packagist
runs-on: ubuntu-latest
steps:
- name: Update SwaggerUI packagist package
run: |
curl --fail -X POST \
-H "Content-Type: application/json" \
"https://packagist.org/api/update-package?username=${{ secrets.PACKAGIST_USER }}&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}" \
-d "{\"repository\":{\"url\":\"https://packagist.org/packages/swagger-api/swagger-ui\"}}"