summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-07-16 16:05:51 +0800
committerFrank <[email protected]>2025-07-16 16:05:51 +0800
commit7ac0a2bc659fa589df95c8ef6a31d74d08288fd7 (patch)
tree4302e4e58d88db059a1dba4b804f18a5ced7425b /scripts
parentcb032cff2bf7bdc44eac4a13c71b1fa45246a39a (diff)
downloadopencode-7ac0a2bc659fa589df95c8ef6a31d74d08288fd7.tar.gz
opencode-7ac0a2bc659fa589df95c8ef6a31d74d08288fd7.zip
wip: github actions
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/publish-github-action.ts16
1 files changed, 16 insertions, 0 deletions
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`