Upload PHP builds for 8.3.17 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload PHP Builds | |
run-name: Upload PHP builds for ${{ inputs.php-version }} | |
on: | |
workflow_dispatch: | |
inputs: | |
php-version: | |
description: 'PHP version to build' | |
required: true | |
url: | |
description: 'Artifact URL' | |
required: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload | |
run: | | |
curl \ | |
--request POST \ | |
--location https://downloads.php.net/api/php \ | |
--header 'Authorization: Bearer ${{ secrets.AUTH_TOKEN }}' \ | |
--data '{ "url": "${{ inputs.url }}", "token": "${{ secrets.TOKEN }}" }' |