Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

permissions:
contents: read
contents: write

concurrency:
group: vercel-production
Expand Down Expand Up @@ -39,6 +39,18 @@ jobs:
cp playground/gosqlx.wasm ../website/public/wasm/
cp playground/wasm_exec.js ../website/public/wasm/

- name: Commit rebuilt WASM if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add website/public/wasm/gosqlx.wasm website/public/wasm/wasm_exec.js
if git diff --cached --quiet; then
echo "WASM unchanged, skipping commit"
else
git commit -m "chore(wasm): rebuild gosqlx.wasm from updated wasm/ source [skip ci]"
git push origin main
fi

- name: Setup Node
uses: actions/setup-node@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

# WASM binary (built in CI)
public/wasm/gosqlx.wasm
# WASM binary — committed to git so Vercel auto-deploy includes it.
# website.yml CI rebuilds and recommits when wasm/ source changes.
Binary file added website/public/wasm/gosqlx.wasm
Binary file not shown.
Loading