Skip to content

Commit

Permalink
Match UI release zip file of unisonLocal.zip
Browse files Browse the repository at this point in the history
The Codebase UI changed its main artifact of ucm.zip to unisonLocal.zip,
make sure we build using the right artifcat.
  • Loading branch information
hojberg committed Nov 29, 2021
1 parent 1be6574 commit bf54fc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pre-release.yaml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions dev-ui-install.sh
@@ -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"

0 comments on commit bf54fc4

Please sign in to comment.