Match UI release zip file of unisonLocal.zip

The Codebase UI changed its main artifact of ucm.zip to unisonLocal.zip,
make sure we build using the right artifcat.
This commit is contained in:
Simon Højberg 2021-11-29 10:30:22 -05:00
parent 1be6574d28
commit bf54fc40e2
2 changed files with 7 additions and 7 deletions

View File

@ -33,8 +33,8 @@ jobs:
mkdir -p /tmp/ucm/ui
UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison
cp $UCM /tmp/ucm/ucm
wget -O/tmp/ucm.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/ucm.zip
unzip -d /tmp/ucm/ui /tmp/ucm.zip
wget -O/tmp/unisonLocal.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip
unzip -d /tmp/ucm/ui /tmp/unisonLocal.zip
tar -c -z -f ucm-linux.tar.gz -C /tmp/ucm .
- name: Upload linux artifact
@ -72,8 +72,8 @@ jobs:
mkdir -p /tmp/ucm/ui
UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison
cp $UCM /tmp/ucm/ucm
wget -O/tmp/ucm.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/ucm.zip
unzip -d /tmp/ucm/ui /tmp/ucm.zip
wget -O/tmp/unisonLocal.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip
unzip -d /tmp/ucm/ui /tmp/unisonLocal.zip
tar -c -z -f ucm-macos.tar.gz -C /tmp/ucm .
- name: Upload macos artifact

View File

@ -1,10 +1,10 @@
echo "This script downloads the latest codebase UI release"
echo "This script downloads the latest Unison Local UI release"
echo "and puts it in the correct spot next to the unison"
echo "executable built by stack."
echo ""
stack build
curl -L https://github.com/unisonweb/codebase-ui/releases/download/latest/ucm.zip --output ucm.zip
curl -L https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip --output unisonLocal.zip
parent_dir="$(dirname -- $(stack exec which unison))"
mkdir -p "$parent_dir/ui"
unzip -o ucm.zip -d "$parent_dir/ui"
unzip -o unisonLocal.zip -d "$parent_dir/ui"