From 39ed13cf8ac749317f4062761c35c5606922f44f Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 21 Feb 2025 17:38:47 +0800 Subject: [PATCH] Create build-all.yml --- .github/workflows/build-all.yml | 69 +++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .github/workflows/build-all.yml diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml new file mode 100644 index 00000000..03b7d834 --- /dev/null +++ b/.github/workflows/build-all.yml @@ -0,0 +1,69 @@ +name: release all platforms + +on: + workflow_dispatch: + inputs: + release_tag: + required: false + type: string + +jobs: + update: + runs-on: ubuntu-latest + steps: + + - name: Trigger build windows + if: github.event.inputs.release_tag != '' + run: | + curl -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-windows.yml/dispatches \ + -d "{ + \"ref\": \"master\", + \"inputs\": { + \"release_tag\": \"${{ github.event.inputs.release_tag }}\" + } + }" + + - name: Trigger build linux + if: github.event.inputs.release_tag != '' + run: | + curl -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-linux.yml/dispatches \ + -d "{ + \"ref\": \"master\", + \"inputs\": { + \"release_tag\": \"${{ github.event.inputs.release_tag }}\" + } + }" + + - name: Trigger build osx + if: github.event.inputs.release_tag != '' + run: | + curl -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-osx.yml/dispatches \ + -d "{ + \"ref\": \"master\", + \"inputs\": { + \"release_tag\": \"${{ github.event.inputs.release_tag }}\" + } + }" + + - name: Trigger build windows desktop + if: github.event.inputs.release_tag != '' + run: | + curl -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/actions/workflows/build-windows-desktop.yml/dispatches \ + -d "{ + \"ref\": \"master\", + \"inputs\": { + \"release_tag\": \"${{ github.event.inputs.release_tag }}\" + } + }" \ No newline at end of file