-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 1.24 KB
/
winlibs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Upload Winlibs builds
run-name: Upload Winlibs builds for ${{ inputs.library }}-${{ inputs.ref }}
on:
workflow_dispatch:
inputs:
library:
description: 'Library Name'
required: true
ref:
description: 'Library Ref'
required: true
workflow_run_id:
description: 'Workflow Run ID'
required: true
php_versions:
description: 'PHP Versions'
required: true
vs_version_targets:
description: 'VS Version Targets'
required: true
stability:
description: 'Stability'
required: true
jobs:
test:
runs-on: ubuntu-latest
environment: downloads.php.net
steps:
- name: Upload
run: |
curl \
--request POST \
--location https://downloads.php.net/api/winlibs \
--header 'Authorization: Bearer ${{ secrets.AUTH_TOKEN }}' \
--data '{ "library": "${{ inputs.library }}", "ref": "${{ inputs.ref }}", "workflow_run_id": "${{ inputs.workflow_run_id }}", "php_versions": "${{ inputs.php_versions }}", "vs_version": "${{ inputs.vs_version }}", "vs_version_targets": "${{ inputs.vs_version_targets }}", "stability": "${{ inputs.stability }}", "token": "${{ secrets.TOKEN }}" }'