From f8e1000ab0a8777d9de0e22656b72db982a4f356 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 2 May 2025 08:43:19 -0400 Subject: [PATCH] fix(yeetfile): copy all docs, data files, and botPolicies.yaml (#419) * fix(yeetfile): copy all docs, data files, and botPolicies.yaml Closes #415 Signed-off-by: Xe Iaso * ci: bump yeet Signed-off-by: Xe Iaso --------- Signed-off-by: Xe Iaso --- .github/workflows/package-builds-stable.yml | 2 +- .github/workflows/package-builds-unstable.yml | 2 +- docs/docs/CHANGELOG.md | 2 ++ yeetfile.js | 15 +++++++++++---- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/package-builds-stable.yml b/.github/workflows/package-builds-stable.yml index b8cc847..3e88141 100644 --- a/.github/workflows/package-builds-stable.yml +++ b/.github/workflows/package-builds-stable.yml @@ -64,7 +64,7 @@ jobs: - name: Build Packages run: | - wget https://github.com/TecharoHQ/yeet/releases/download/v0.2.1/yeet_0.2.1_amd64.deb -O var/yeet.deb + wget https://github.com/TecharoHQ/yeet/releases/download/v0.2.2/yeet_0.2.2_amd64.deb -O var/yeet.deb sudo apt -y install -f ./var/yeet.deb rm ./var/yeet.deb yeet diff --git a/.github/workflows/package-builds-unstable.yml b/.github/workflows/package-builds-unstable.yml index 3f4dbb3..f93fbe9 100644 --- a/.github/workflows/package-builds-unstable.yml +++ b/.github/workflows/package-builds-unstable.yml @@ -66,7 +66,7 @@ jobs: - name: Build Packages run: | - wget https://github.com/TecharoHQ/yeet/releases/download/v0.2.1/yeet_0.2.1_amd64.deb -O var/yeet.deb + wget https://github.com/TecharoHQ/yeet/releases/download/v0.2.2/yeet_0.2.2_amd64.deb -O var/yeet.deb sudo apt -y install -f ./var/yeet.deb rm ./var/yeet.deb yeet diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index 0cab47f..6bef2d8 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- Fixed native packages not containing the stdlib and botPolicies.yaml + ## v1.17.1: Asahi sas Brutus: Echo 1 - Added customization of authorization cookie expiration time with `--cookie-expiration-time` flag or envvar diff --git a/yeetfile.js b/yeetfile.js index 035de3c..b6ba804 100644 --- a/yeetfile.js +++ b/yeetfile.js @@ -11,17 +11,24 @@ $`npm run assets`; documentation: { "./README.md": "README.md", "./LICENSE": "LICENSE", - "./docs/docs/CHANGELOG.md": "CHANGELOG.md", - "./docs/docs/admin/policies.mdx": "policies.md", - "./docs/docs/admin/native-install.mdx": "native-install.mdx", "./data/botPolicies.json": "botPolicies.json", + "./data/botPolicies.yaml": "botPolicies.yaml", }, - build: ({ bin, etc, systemd, out }) => { + build: ({ bin, etc, systemd, doc }) => { $`go build -o ${bin}/anubis -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${git.tag()}"' ./cmd/anubis`; file.install("./run/anubis@.service", `${systemd}/anubis@.service`); file.install("./run/default.env", `${etc}/default.env`); + + $`mkdir -p ${doc}/docs` + $`cp -a docs/docs ${doc}`; + $`find ${doc} -name _category_.json -delete`; + $`mkdir -p ${doc}/data`; + $`cp -a data/apps ${doc}/data/apps`; + $`cp -a data/bots ${doc}/data/bots`; + $`cp -a data/common ${doc}/data/common`; + $`cp -a data/crawlers ${doc}/data/crawlers`; }, })); });