wip: github actions

This commit is contained in:
Frank 2025-07-16 16:05:51 +08:00
parent cb032cff2b
commit 7ac0a2bc65
4 changed files with 18 additions and 11 deletions

View file

@ -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`