Skip to content

Commit 99588d6

Browse files
committed
refactor: streamline release process by consolidating asset uploads into a single step
1 parent 0516b24 commit 99588d6

1 file changed

Lines changed: 9 additions & 39 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -44,49 +44,19 @@ jobs:
4444
echo "version=$VERSION" >> $GITHUB_OUTPUT
4545
echo "📦 Version: $VERSION"
4646
47-
- name: Create Release
48-
id: create_release
49-
uses: actions/create-release@v1
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
- name: Create Release and Upload Assets
48+
uses: softprops/action-gh-release@v2
5249
with:
5350
tag_name: ${{ steps.version.outputs.version }}
54-
release_name: Release ${{ steps.version.outputs.version }}
51+
name: Release ${{ steps.version.outputs.version }}
5552
draft: false
5653
prerelease: false
5754
body: |
5855
WASM build for uniot-lisp ${{ steps.version.outputs.version }}
5956
60-
## Files
61-
- `unlisp.wasm` - WebAssembly module (~74KB)
62-
- `unlisp.js` - JavaScript loader/wrapper (~21KB)
63-
64-
## Usage
65-
Download these files and place them in your project:
66-
- `unlisp.wasm` → `static/` directory
67-
- `unlisp.js` → `utils/unlisp/` directory
68-
69-
## Installation via script
70-
```bash
71-
./scripts/fetch-wasm.sh ${{ steps.version.outputs.version }}
72-
```
73-
74-
- name: Upload unlisp.wasm
75-
uses: actions/upload-release-asset@v1
76-
env:
77-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78-
with:
79-
upload_url: ${{ steps.create_release.outputs.upload_url }}
80-
asset_path: ./build/unlisp.wasm
81-
asset_name: unlisp.wasm
82-
asset_content_type: application/wasm
83-
84-
- name: Upload unlisp.js
85-
uses: actions/upload-release-asset@v1
86-
env:
87-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88-
with:
89-
upload_url: ${{ steps.create_release.outputs.upload_url }}
90-
asset_path: ./build/unlisp.js
91-
asset_name: unlisp.js
92-
asset_content_type: application/javascript
57+
## Artifacts
58+
- `unlisp.wasm` - WebAssembly module
59+
- `unlisp.js` - JavaScript loader
60+
files: |
61+
build/unlisp.wasm
62+
build/unlisp.js

0 commit comments

Comments
 (0)