Skip to content

Commit 39ed13c

Browse files
committed
Create build-all.yml
1 parent a1edacb commit 39ed13c

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/build-all.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: release all platforms
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_tag:
7+
required: false
8+
type: string
9+
10+
jobs:
11+
update:
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Trigger build windows
16+
if: github.event.inputs.release_tag != ''
17+
run: |
18+
curl -X POST \
19+
-H "Accept: application/vnd.github.v3+json" \
20+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
21+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-windows.yml/dispatches \
22+
-d "{
23+
\"ref\": \"master\",
24+
\"inputs\": {
25+
\"release_tag\": \"${{ github.event.inputs.release_tag }}\"
26+
}
27+
}"
28+
29+
- name: Trigger build linux
30+
if: github.event.inputs.release_tag != ''
31+
run: |
32+
curl -X POST \
33+
-H "Accept: application/vnd.github.v3+json" \
34+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
35+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-linux.yml/dispatches \
36+
-d "{
37+
\"ref\": \"master\",
38+
\"inputs\": {
39+
\"release_tag\": \"${{ github.event.inputs.release_tag }}\"
40+
}
41+
}"
42+
43+
- name: Trigger build osx
44+
if: github.event.inputs.release_tag != ''
45+
run: |
46+
curl -X POST \
47+
-H "Accept: application/vnd.github.v3+json" \
48+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
49+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-osx.yml/dispatches \
50+
-d "{
51+
\"ref\": \"master\",
52+
\"inputs\": {
53+
\"release_tag\": \"${{ github.event.inputs.release_tag }}\"
54+
}
55+
}"
56+
57+
- name: Trigger build windows desktop
58+
if: github.event.inputs.release_tag != ''
59+
run: |
60+
curl -X POST \
61+
-H "Accept: application/vnd.github.v3+json" \
62+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
63+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-windows-desktop.yml/dispatches \
64+
-d "{
65+
\"ref\": \"master\",
66+
\"inputs\": {
67+
\"release_tag\": \"${{ github.event.inputs.release_tag }}\"
68+
}
69+
}"

0 commit comments

Comments
 (0)