From b77465d686419830ab92a575d606a3623a3ba5e5 Mon Sep 17 00:00:00 2001 From: Mike Conrad Date: Thu, 27 Feb 2025 09:19:43 -0500 Subject: [PATCH] Updated README with deploy info --- README.md | 26 ++++++++++++++++++++------ deploy.sh | 5 +++++ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100755 deploy.sh diff --git a/README.md b/README.md index 941d4ab..ba61d21 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,22 @@ ```shell -git clone https://git.hackanooga.com/mikeconrad/hackanooga.com.git -cd hackanooga.com -git checkout master -git submodule init -git submodule update -hugo server --disableFastRender + +$ git clone https://git.hackanooga.com/mikeconrad/hackanooga.com.git +$ cd hackanooga.com +$ git checkout master +$ git submodule init +$ git submodule update +$ hugo server --disableFastRender ``` + + +## Deployment +I created a super simple shell script to automate deployment. It requires the wrangler cli to be installed: +```shell +$ npm i -g wrangler +``` + +Once you have wrangler installed, simply run: +```shell +$ bash deploy.sh +``` +The first time, you will be asked to authenticate to Cloudflare. \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..fe4a394 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,5 @@ +#!/bin/env bash +rm -rf public +hugo build +npx wrangler pages deploy --project-name hackanooga-blog public/ +rm -rf public