Skip to content

Commit a4e273c

Browse files
committed
ci: fix opencode plugin release artifacts
1 parent 7273af4 commit a4e273c

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

.github/workflows/release-opencode-plugin.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
push:
55
branches: [main]
66
paths:
7-
- 'cupcake-plugins/opencode/**'
7+
- "cupcake-plugins/opencode/**"
8+
- ".github/workflows/release-opencode-plugin.yml"
89
workflow_dispatch:
910

1011
jobs:
@@ -34,12 +35,17 @@ jobs:
3435
working-directory: cupcake-plugins/opencode
3536
run: bun run build
3637

37-
- name: Generate checksum
38+
- name: Prepare release assets
3839
working-directory: cupcake-plugins/opencode/dist
3940
run: |
40-
sha256sum cupcake.js > cupcake.js.sha256
41-
echo "Generated checksum:"
42-
cat cupcake.js.sha256
41+
# Rename files to match expected release asset names
42+
cp cupcake.js opencode-plugin.js
43+
sha256sum opencode-plugin.js > opencode-plugin.js.sha256
44+
45+
echo "Release assets:"
46+
ls -la opencode-plugin.*
47+
echo "Checksum:"
48+
cat opencode-plugin.js.sha256
4349
4450
- name: Get commit info
4551
id: commit
@@ -54,29 +60,29 @@ jobs:
5460
name: OpenCode Plugin (Latest)
5561
body: |
5662
Latest build of the Cupcake OpenCode plugin.
57-
63+
5864
This release is automatically updated when changes are merged to main.
59-
65+
6066
**Build:** ${{ steps.commit.outputs.sha_short }} (${{ steps.commit.outputs.date }})
61-
67+
6268
## Files
6369
- `opencode-plugin.js` - The plugin file
6470
- `opencode-plugin.js.sha256` - SHA256 checksum
65-
71+
6672
## Installation
67-
73+
6874
The plugin is automatically downloaded when you run:
6975
```bash
7076
cupcake init --harness opencode
7177
```
72-
78+
7379
Or manually download:
7480
```bash
7581
curl -fsSL https://github.com/eqtylab/cupcake/releases/download/opencode-plugin-latest/opencode-plugin.js \
7682
-o .opencode/plugin/cupcake.js
7783
```
7884
files: |
79-
cupcake-plugins/opencode/dist/cupcake.js#opencode-plugin.js
80-
cupcake-plugins/opencode/dist/cupcake.js.sha256#opencode-plugin.js.sha256
85+
cupcake-plugins/opencode/dist/opencode-plugin.js
86+
cupcake-plugins/opencode/dist/opencode-plugin.js.sha256
8187
make_latest: false
8288
prerelease: false

0 commit comments

Comments
 (0)