File tree 1 file changed +27
-2
lines changed
1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : go
2
2
on :
3
3
push :
4
+ tags :
5
+ - v*
4
6
branches :
5
7
- main
6
8
pull_request :
22
24
- run : sqlc diff
23
25
working-directory : examples
24
26
25
- - 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
26
33
with :
27
34
name : sqlc-gen-python
28
- 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
You can’t perform that action at this time.
0 commit comments