-
-
Notifications
You must be signed in to change notification settings - Fork 5
20 lines (16 loc) · 610 Bytes
/
Copy pathrelease.yml
File metadata and controls
20 lines (16 loc) · 610 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Release to Packagist
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Trigger Packagist Update
run: |
curl -X POST -H "Content-Type: application/json" \
-d '{"repository":{"url":"https://packagist.org/api/update-package?username=${{ secrets.PACKAGIST_USERNAME }}&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}"}}' \
https://packagist.org/api/update-package?username=${{ secrets.PACKAGIST_USERNAME }}&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}