M .builds/php7_3.yml => .builds/php7_3.yml +4 -0
@@ 1,6 1,9 @@
---
image: debian/buster
+secrets:
+ - cde47d09-64da-4651-a62e-bf762c4dec73
+
sources:
- https://git.sr.ht/~ancarda/psr7-string-stream
@@ 28,3 31,4 @@ tasks:
- test: cd $DIR && composer run-script test
- check-cov: cd $DIR && composer run-script check-coverage
- check-tests: cd $DIR && composer run-script check-tests
+ - packagist: cd $DIR && .builds/poke-packagist ancarda $DIR ~/.packagist-api-token
A .builds/poke-packagist => .builds/poke-packagist +5 -0
@@ 0,0 1,5 @@
+#!/bin/sh
+curl -X POST \
+ -H 'content-type:application/json' \
+ "https://packagist.org/api/update-package?username=${1}&apiToken=$(cat $3)" \
+ --data "{\"repository\":{\"url\":\"https://packagist.org/packages/${1}/${2}\"}}"