GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — sync · matleh/opencode@db88bed

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • publish.yml
  • packages/opencode/script
    • publish.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/publish.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
with:
3333
bun-version: 1.2.16
3434

35+
- name: Setup SSH for AUR
36+
run: |
37+
mkdir -p ~/.ssh
38+
echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa
39+
chmod 600 ~/.ssh/id_rsa
40+
3541
- run: |
3642
bun install
3743
./script/publish.ts
Collapse file

‎packages/opencode/script/publish.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/script/publish.ts
+4-11Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,11 @@ if (!snapshot) {
144144
)
145145

146146
await $`rm -rf ./dist/aur-opencode-bin`
147-
const gitEnv: Record<string, string> = process.env["AUR_KEY"]
148-
? { GIT_SSH_COMMAND: `ssh -i "${process.env["AUR_KEY"].trim()}"` }
149-
: {}
150147

151-
await $`git clone ssh://[email protected]/opencode-bin.git ./dist/aur-opencode-bin`.env(
152-
gitEnv,
153-
)
148+
await $`git clone ssh://[email protected]/opencode-bin.git ./dist/aur-opencode-bin`
154149
await Bun.file("./dist/aur-opencode-bin/PKGBUILD").write(pkgbuild)
155150
await $`cd ./dist/aur-opencode-bin && makepkg --printsrcinfo > .SRCINFO`
156-
await $`cd ./dist/aur-opencode-bin && git add PKGBUILD .SRCINFO`.env(gitEnv)
157-
await $`cd ./dist/aur-opencode-bin && git commit -m "Update to v${version}"`.env(
158-
gitEnv,
159-
)
160-
if (!dry) await $`cd ./dist/aur-opencode-bin && git push`.env(gitEnv)
151+
await $`cd ./dist/aur-opencode-bin && git add PKGBUILD .SRCINFO`
152+
await $`cd ./dist/aur-opencode-bin && git commit -m "Update to v${version}"`
153+
if (!dry) await $`cd ./dist/aur-opencode-bin && git push`
161154
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.