ci: add workflow to trigger windows builds

This commit is contained in:
Shivam Mathur 2025-01-30 11:46:57 +00:00
parent 7f6c05116e
commit f4aadb5537

23
.github/workflows/windows-builds.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Windows builds
run-name: Windows builds for ${{ inputs.tag || github.ref_name }}
on:
push:
tags:
- 'php-*'
workflow_dispatch:
inputs:
tag:
description: 'Tag version'
required: true
jobs:
publish:
runs-on: ubuntu-latest
name: Build
steps:
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.WINDOWS_BUILDS_TOKEN }}
run: |
TAG="${{ inputs.tag || github.ref_name }}"
gh workflow run php.yml -R php/php-windows-builder -f php-version="${TAG#php-}"