Skip to content

Commit 231ca24

Browse files
author
Patrick Widmer
committed
wip
1 parent e342e6e commit 231ca24

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@ jobs:
2828
nixos/nix:latest sh -c '
2929
set -e
3030
31+
owner=${{ github.repository_owner }}
32+
repo=${{ github.repository }}
33+
repo="${repo#$owner/}"
34+
3135
git config --global --add safe.directory $(pwd)
3236
for file in src/*.gleam; do
3337
task=$(basename "$file" .gleam)
3438
echo "Building task: $task"
3539
nix develop -c gleam run -m lustre/dev build --minify --outdir=public/$task $task
36-
nix develop -c sed -i "s|/$task.js|/7guis/$task/$task.js|" public/$task/index.html
40+
nix develop -c sed -i "s|/$task.js|/$repo/$task/$task.js|" public/$task/index.html
3741
done
3842
'
3943

0 commit comments

Comments
 (0)