File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 11name : go
22on :
33 push :
4+ tags :
5+ - v*
46 branches :
57 - main
68 pull_request :
2224 - run : sqlc diff
2325 working-directory : examples
2426
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
2633 with :
2734 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