GeezerVison is showing github.com — sync · matleh/opencode@db88bed
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/publish.yml +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
32 | 32 | with: |
33 | 33 | bun-version: 1.2.16 |
34 | 34 |
|
| 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 | +
|
35 | 41 | - run: | |
36 | 42 | bun install |
37 | 43 | ./script/publish.ts |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/opencode/script/publish.ts +4-11Lines changed: 4 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -144,18 +144,11 @@ if (!snapshot) { |
144 | 144 | ) |
145 | 145 |
|
146 | 146 | 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 | | - : {} |
150 | 147 |
|
151 | | - await $`git clone ssh://[email protected]/opencode-bin.git ./dist/aur-opencode-bin`.env( |
152 | | - gitEnv, |
153 | | - ) |
| 148 | + |
154 | 149 | await Bun.file("./dist/aur-opencode-bin/PKGBUILD").write(pkgbuild) |
155 | 150 | 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` |
161 | 154 | } |