fix(ci): error in building electron due to extensions

This commit is contained in:
Elian Doran 2025-02-05 18:47:14 +02:00
parent 856a8a754e
commit 803f59260d
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ inputs:
description: "The architecture to build for: x64, arm64" description: "The architecture to build for: x64, arm64"
required: true required: true
extension: extension:
description: "Platform specific extension to build: dmg, deb, exe" description: "Platform specific extensions to copy in the output: dmg, deb, rpm, exe"
required: true required: true
runs: runs:
using: composite using: composite
@ -32,7 +32,7 @@ runs:
shell: bash shell: bash
run: | run: |
mkdir -p upload; mkdir -p upload;
for ext in ${{ join(inputs.extension, ' ') }}; for ext in ${{ inputs.extension }};
do do
file=$(find out/make -name "*.$ext" -print -quit); file=$(find out/make -name "*.$ext" -print -quit);
cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}.$ext"; cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}.$ext";

View File

@ -44,7 +44,7 @@ jobs:
with: with:
os: ${{ matrix.os.name }} os: ${{ matrix.os.name }}
arch: ${{ matrix.arch }} arch: ${{ matrix.arch }}
extension: ${{ matrix.os.extension }} extension: ${{ join(matrix.os.extension, ' ') }}
- run: find output - run: find output
- name: Deploy release - name: Deploy release

View File

@ -39,7 +39,7 @@ jobs:
with: with:
os: ${{ matrix.os.name }} os: ${{ matrix.os.name }}
arch: ${{ matrix.arch }} arch: ${{ matrix.arch }}
extension: ${{ matrix.os.extension }} extension: ${{ join(matrix.os.extension, ' ') }}
- name: Publish release - name: Publish release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with: