From 026dc45bb4610b9e1bed8ea5bf9c028cf8e94efa Mon Sep 17 00:00:00 2001 From: Nickolas Gupton Date: Mon, 9 Dec 2024 22:58:59 -0600 Subject: [PATCH] Add cloudflare build script --- build-cloudflare.sh | 10 ++++++++++ update-dotnet-tools.sh | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 build-cloudflare.sh diff --git a/build-cloudflare.sh b/build-cloudflare.sh new file mode 100644 index 0000000..b7dc00b --- /dev/null +++ b/build-cloudflare.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh +chmod +x dotnet-install.sh +./dotnet-install.sh --channel latest --install-dir ./dotnet +./dotnet/dotnet --version +./dotnet/dotnet workload install wasm-tools + +mkdir publish +./dotnet/dotnet publish Frontend/Bones.WebUI/Bones.WebUI.csproj --configuration Release --property PublishDir=/opt/buildhome/repo/publish \ No newline at end of file diff --git a/update-dotnet-tools.sh b/update-dotnet-tools.sh index d3222ab..e2c359c 100644 --- a/update-dotnet-tools.sh +++ b/update-dotnet-tools.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + cd Core/Bones.Database dotnet tool update dotnet-ef dotnet tool restore