Skip to content

Commit efd4f9a

Browse files
committed
feat(wasm): add release workflow for sqlite-wasm
1 parent a9a18d3 commit efd4f9a

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,29 @@ jobs:
236236
echo "❌ CLOUDSYNC_VERSION not found in cloudsync.h"
237237
exit 1
238238
239-
- uses: actions/setup-node@v4
239+
- uses: actions/[email protected]
240+
if: steps.tag.outputs.version != ''
240241
with:
241-
node-version: '20.x'
242-
registry-url: 'https://registry.npmjs.org'
242+
repository: sqliteai/sqlite-wasm
243+
path: sqlite-wasm
244+
submodules: recursive
245+
token: ${{ secrets.PAT }}
246+
247+
- name: release sqlite-wasm
248+
if: steps.tag.outputs.version != ''
249+
run: |
250+
cd sqlite-wasm
251+
git config --global user.email "[email protected]"
252+
git config --global user.name "$GITHUB_ACTOR"
253+
cd modules/sqlite-sync
254+
git checkout ${{ github.sha }}
255+
cd ../..
256+
git add modules/sqlite-sync
257+
git commit -m "Bump sqlite-sync version to ${{ steps.tag.outputs.version }}"
258+
git push origin main
243259
244260
- name: zip artifacts
261+
if: steps.tag.outputs.version != ''
245262
run: |
246263
for folder in "artifacts"/*; do
247264
if [ -d "$folder" ]; then

src/cloudsync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
extern "C" {
2121
#endif
2222

23-
#define CLOUDSYNC_VERSION "0.8.29"
23+
#define CLOUDSYNC_VERSION "0.8.30"
2424

2525
int sqlite3_cloudsync_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);
2626

0 commit comments

Comments
 (0)