Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3d5cd34

Browse files
committed
feat: automatic release of the plugin on tagging
1 parent6efc624 commit3d5cd34

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name:go
22
on:
33
push:
4+
tags:
5+
-v*
46
branches:
57
-main
68
pull_request:
@@ -22,7 +24,30 @@ jobs:
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp