Skip to content

Commit

Permalink
ci: fix varible outside scope of json
Browse files Browse the repository at this point in the history
  • Loading branch information
sehnryr authored Jul 5, 2024
1 parent 2d55704 commit 1a2adc5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ for package_dir in "$workspace_dir/src/*/*"; do
target_file=$(sed 's/-/_/g' <<< $package_name).wasm
target="$workspace_dir/target/wasm32-unknown-unknown/release/$target_file"

# Get the packaged name of the extension
packaged_name=${package_name:7}
packaged_name=${packaged_name/-/.}

# Package the extension only if the wasm file exists
if [ -f $target ]; then
# Copy the wasm file to the package directory
cp $target $package_dir/res/extension.wasm

packaged_name=${package_name:7}
packaged_name=${packaged_name/-/.}

# Zip the extension and manifest
tar --sort=name \
--mtime='UTC 2024-01-01' \
Expand Down

0 comments on commit 1a2adc5

Please sign in to comment.