diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml deleted file mode 100644 index 80576f4..0000000 --- a/.github/workflows/upload.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: CI - -# Controls when the action will run. -on: - # Triggers the workflow on push to master (including merged PRs) - push: - branches: [ master ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - update: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - - name: Updating website. - uses: appleboy/ssh-action@master - with: - host: based.cooking - username: based - key: ${{ secrets.based_ssh }} - passphrase: ${{ secrets.based_ssh_pass }} - port: ${{ secrets.based_port }} - script: | - cd repo - git stash - git pull --force origin master - hugo -s . -t /var/www/lugo -d ~/based.cooking/ --cacheDir ~/hugocache diff --git a/.gitignore b/.gitignore index e9e5974..9a7173f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ hugo_stats.json # Temporary lock file while building /.hugo_build.lock +/.wrangler/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9633c5d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/lugo"] + path = themes/lugo + url = https://github.com/lukesmithxyz/lugo.git diff --git a/README.md b/README.md index fe1e93f..c92a4dc 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ > continuation. > - Molly 8/21/26 +[https://cooking.daze.lol](https://cooking.daze.lol) + This is a simple cooking website for collecting personal recipes. There are no ads, trackers or cookies (unless recipes thereof). @@ -65,6 +67,19 @@ they should be numbered with two digits like: `pix/chicken-parmesan-01.webp`, et Note also that images should have links beginning with a slash in this use case, i.e. `/pix/...`. +## Deployment + +The site is hosted on the `cooking-daze-lol` Cloudflare Worker as static +assets, with `cooking.daze.lol` attached as its custom domain. To deploy it: + +```sh +git submodule update --init +nix run github:NixOS/nixpkgs/ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b#hugo -- --minify +npx --yes wrangler@4.125.0 deploy +``` + +Wrangler reads Cloudflare credentials from `CLOUDFLARE_API_TOKEN`. + ## License This website and all its content is in the public domain. diff --git a/config.toml b/config.toml index 53aa950..1b2f4a1 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = 'https://based.cooking/' +baseURL = 'https://cooking.daze.lol/' languageCode = 'en-us' title = 'Based Cooking' theme = 'lugo' diff --git a/themes/lugo b/themes/lugo new file mode 160000 index 0000000..84fd40f --- /dev/null +++ b/themes/lugo @@ -0,0 +1 @@ +Subproject commit 84fd40fbf184d83ca459016a1ad6ef0f87d70a1d diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..57b1bec --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,10 @@ +{ + "name": "cooking-daze-lol", + "compatibility_date": "2026-08-21", + "workers_dev": false, + "assets": { + "directory": "./public", + "html_handling": "auto-trailing-slash", + "not_found_handling": "404-page" + } +}