mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 20:16:35 +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
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
|
@ -104,17 +104,19 @@ jobs:
|
|||
working-directory: kiosk
|
||||
run: |
|
||||
bin="betterframe-kiosk-${{ inputs.version }}-${{ matrix.target }}"
|
||||
content_b64=$(base64 -w 0 "$bin")
|
||||
curl -sSf -X POST \
|
||||
-H "Authorization: Bearer ${BF_AUTOIMPORT_API_KEY}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$(jq -nc \
|
||||
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 }})" \
|
||||
--arg b "$content_b64" \
|
||||
'{version:$v, channel:$c, arch:$a, release_notes:$n, content_b64:$b}')" \
|
||||
--rawfile b "${bin}.b64" \
|
||||
'{version:$v, channel:$c, arch:$a, release_notes:$n, content_b64:$b}' \
|
||||
> "${bin}.import.json"
|
||||
curl -sSf -X POST \
|
||||
-H "Authorization: Bearer ${BF_AUTOIMPORT_API_KEY}" \
|
||||
-H "Content-Type: application/json" \
|
||||
--data-binary @"${bin}.import.json" \
|
||||
"${BF_AUTOIMPORT_URL}/api/admin/firmware/import"
|
||||
|
||||
- name: Upload artifact (always)
|
||||
|
|
|
|||
Loading…
Reference in a new issue