Skip to content

Commit 9963e7d

Browse files
committed
Add GitHub Actions workflow for releasing sqlc-gen-php.wasm
1 parent 56c1cfd commit 9963e7d

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release sqlc-gen-php.wasm
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v5
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v6
17+
with:
18+
go-version: "1.23"
19+
20+
- name: Build wasm binary
21+
run: make bin/sqlc-gen-php.wasm
22+
23+
- name: Generate checksum
24+
run: |
25+
sha256sum bin/sqlc-gen-php.wasm > bin/sqlc-gen-php.wasm.sha256
26+
27+
- name: Create Release
28+
uses: softprops/action-gh-release@v2
29+
with:
30+
files: |
31+
bin/sqlc-gen-php.wasm
32+
bin/sqlc-gen-php.wasm.sha256
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)