After having a lot of fun getting Jekyll performing amazing with Pages, I thought I’d have a play around with a Blazor WASM app. My build.sh
is copied from the Pages guide
#!/bin/sh
curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh
chmod +x dotnet-install.sh
./dotnet-install.sh -c 5.0 -InstallDir ./dotnet5
./dotnet5/dotnet --version
./dotnet5/dotnet publish -c Release -o output
But then the build fails, the relevant part of the build log is
09:01:07.061 Executing user command: ./build.sh
09:01:07.062 /opt/build/bin/build: line 39: ./build.sh: Permission denied
09:01:07.063 Failed: build command exited with code: 126
If I just copy out the lines of the build file and paste it into the build command field, it works/builds/deploys just fine (ie curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh && chmod +x dotnet-install.sh && ./dotnet-install.sh -c 5.0 -InstallDir ./dotnet5 && ./dotnet5/dotnet --version && ./dotnet5/dotnet publish -c Release -o output
)
I’m very much a hobbyist dev, so I’m 100% okay with it being a PEBKAC on my end, but it’d be nice to have it a little more contained in a build script
(edit: I have no idea how to set the tag for the post to #CloudflarePages )