Skip to content

Commit 468caf5

Browse files
committed
ci: add workflow to trigger windows builds
1 parent fa7c67d commit 468caf5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Windows builds
2+
run-name: Windows builds ${{ inputs.tag || github.ref_name }}
3+
on:
4+
push:
5+
tags:
6+
- 'php-*'
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Tag version'
11+
required: true
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
name: Build
17+
steps:
18+
- name: Build
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: |
22+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
23+
TAG=${{ github.event.inputs.tag }}
24+
else
25+
TAG="${{ github.ref_name }}"
26+
fi
27+
gh workflow run php.yml -R php/php-windows-builder -f php-version="${TAG#php-}"

0 commit comments

Comments
 (0)