From 7ac0a2bc659fa589df95c8ef6a31d74d08288fd7 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 16 Jul 2025 16:05:51 +0800 Subject: wip: github actions --- scripts/publish-github-action.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/publish-github-action.ts (limited to 'scripts') diff --git a/scripts/publish-github-action.ts b/scripts/publish-github-action.ts new file mode 100755 index 000000000..391b25a57 --- /dev/null +++ b/scripts/publish-github-action.ts @@ -0,0 +1,16 @@ +#!/usr/bin/env bun + +import { $ } from "bun" + +try { + await $`git tag -d github-v1` + await $`git push origin :refs/tags/github-v1` +} catch (e) { + if (e instanceof Error && e.message.includes("not found")) { + console.log("tag not found, continuing...") + } else { + throw e + } +} +await $`git tag -a github-v1 -m "Update github-v1 to latest"` +await $`git push origin github-v1` -- cgit v1.2.3