mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 17:56:34 +00:00
fix(ci): avoid auto-import argv limit
This commit is contained in:
parent
08568e52fa
commit
6995990aca
1 changed files with 10 additions and 8 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
|
@ -104,17 +104,19 @@ jobs:
|
||||||
working-directory: kiosk
|
working-directory: kiosk
|
||||||
run: |
|
run: |
|
||||||
bin="betterframe-kiosk-${{ inputs.version }}-${{ matrix.target }}"
|
bin="betterframe-kiosk-${{ inputs.version }}-${{ matrix.target }}"
|
||||||
content_b64=$(base64 -w 0 "$bin")
|
base64 -w 0 "$bin" > "${bin}.b64"
|
||||||
|
jq -nc \
|
||||||
|
--arg v "${{ inputs.version }}" \
|
||||||
|
--arg c "${{ inputs.channel }}" \
|
||||||
|
--arg a "${{ matrix.target }}" \
|
||||||
|
--arg n "GitHub Actions build of ${{ inputs.tag }} (${{ github.sha }})" \
|
||||||
|
--rawfile b "${bin}.b64" \
|
||||||
|
'{version:$v, channel:$c, arch:$a, release_notes:$n, content_b64:$b}' \
|
||||||
|
> "${bin}.import.json"
|
||||||
curl -sSf -X POST \
|
curl -sSf -X POST \
|
||||||
-H "Authorization: Bearer ${BF_AUTOIMPORT_API_KEY}" \
|
-H "Authorization: Bearer ${BF_AUTOIMPORT_API_KEY}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "$(jq -nc \
|
--data-binary @"${bin}.import.json" \
|
||||||
--arg v "${{ inputs.version }}" \
|
|
||||||
--arg c "${{ inputs.channel }}" \
|
|
||||||
--arg a "${{ matrix.target }}" \
|
|
||||||
--arg n "GitHub Actions build of ${{ inputs.tag }} (${{ github.sha }})" \
|
|
||||||
--arg b "$content_b64" \
|
|
||||||
'{version:$v, channel:$c, arch:$a, release_notes:$n, content_b64:$b}')" \
|
|
||||||
"${BF_AUTOIMPORT_URL}/api/admin/firmware/import"
|
"${BF_AUTOIMPORT_URL}/api/admin/firmware/import"
|
||||||
|
|
||||||
- name: Upload artifact (always)
|
- name: Upload artifact (always)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue