We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6efc624 commit3d5cd34Copy full SHA for 3d5cd34
.github/workflows/ci.yml
@@ -1,6 +1,8 @@
1
name:go
2
on:
3
push:
4
+tags:
5
+ -v*
6
branches:
7
-main
8
pull_request:
@@ -22,7 +24,30 @@ jobs:
22
24
-run:sqlc diff
23
25
working-directory:examples
26
- -uses:actions/upload-artifact@v3
27
+ -name:Generate checksum
28
+id:checksum
29
+run:|-
30
+ echo "sha256=$(sha256sum bin/sqlc-gen-python.wasm | awk '{ print $1 }')" >> $GITHUB_OUTPUT
31
+
32
+ -uses:actions/upload-artifact@v4
33
with:
34
name:sqlc-gen-python
-path:plugin/sqlc-gen-python.wasm
35
+path:bin/sqlc-gen-python.wasm
36
37
+ -name:Release the build on tag
38
+uses:softprops/action-gh-release@v1
39
+if:startsWith(github.ref, 'refs/tags/')
40
+with:
41
+body:|
42
+ # Configuration
43
+ ```yaml
44
+ version: '2'
45
+ plugins:
46
+ - name: py
47
+ wasm:
48
+ url: ${{ github.server_url }}/${{ github.repository}}/releases/download/${{ github.ref_name }}/sqlc-gen-python.wasm
49
+ sha256: ${{ steps.checksum.outputs.sha256 }}
50
+ ```
51
+generate_release_notes:true
52
+files:|
53
+ bin/sqlc-gen-python.wasm