Skip to content

Commit

Permalink
Fix release asset upload and add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
avirajkhare00 committed Feb 9, 2025
1 parent 6ea8297 commit f43c2dd
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,51 @@ jobs:
run: |
cd build
emmake make
ls -la
- name: Debug File Locations
run: |
echo "Contents of build directory:"
ls -R build/
echo "\nContents of root directory:"
ls -la
- name: Prepare Release Files
run: |
mkdir release
cp build/terminal.wasm release/
cp build/terminal.js release/
mkdir -p release
# Copy build artifacts
if [ -f "build/terminal.wasm" ]; then
cp build/terminal.wasm release/
else
echo "terminal.wasm not found in build directory"
exit 1
fi
if [ -f "build/terminal.js" ]; then
cp build/terminal.js release/terminal.generated.js
else
echo "terminal.js not found in build directory"
exit 1
fi
# Copy source files
cp terminal.js release/terminal.js
cp index.html release/
cp terminal.js release/
echo "\nContents of release directory:"
ls -la release/
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: |
release/terminal.wasm
release/terminal.generated.js
release/terminal.js
release/index.html
release/terminal.js
body: |
WebAssembly Terminal Release
- terminal.wasm: WebAssembly binary
- terminal.generated.js: Emscripten generated JavaScript
- terminal.js: Terminal implementation
- index.html: Web interface
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f43c2dd

Please sign in to comment.