Skip to content

Commit cd47f03

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

File tree

1 file changed

+29
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)