mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-14 11:35:44 +00:00
Some checks are pending
release Linux / build (push) Waiting to run
release Linux / release-zip (push) Blocked by required conditions
release Linux / build and release deb (push) Waiting to run
release Linux / build and release rpm (push) Waiting to run
release macOS / build (push) Waiting to run
release macOS / release-zip (push) Blocked by required conditions
release macOS / package and release macOS dmg (push) Blocked by required conditions
release Windows desktop (Avalonia UI) / build (push) Waiting to run
release Windows desktop (Avalonia UI) / release-zip (push) Blocked by required conditions
release Windows / build (push) Waiting to run
release Windows / release-zip (push) Blocked by required conditions
* Refactor and Optimize CI Workflow * Refactor and Optimize CI Workflow (Added input option value annotations for clarity.)
69 lines
2.3 KiB
YAML
69 lines
2.3 KiB
YAML
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: 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\": \"${{ inputs.release_tag }}\"
|
|
}
|
|
}"
|
|
|
|
- name: Trigger build linux
|
|
if: 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\": \"${{ inputs.release_tag }}\"
|
|
}
|
|
}"
|
|
|
|
- name: Trigger build osx
|
|
if: 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\": \"${{ inputs.release_tag }}\"
|
|
}
|
|
}"
|
|
|
|
- name: Trigger build windows desktop
|
|
if: 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\": \"${{ inputs.release_tag }}\"
|
|
}
|
|
}"
|