9
9
- " */**.yml"
10
10
pull_request :
11
11
workflow_dispatch :
12
+ release :
13
+ types : [published]
12
14
13
15
concurrency :
14
16
group : ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }}
23
25
# duckdb_version: 1.1.2
24
26
# ci_tools_version: 1.1.2
25
27
# extension_name: chsql
28
+ # We have to build v1.2.0 based due to go-duckdb restrictions
29
+ duckdb-1-2-0-build :
30
+ name : Build extension binaries
31
+ uses : duckdb/extension-ci-tools/.github/workflows/_extension_distribution.yml@v1.2.1
32
+ with :
33
+ duckdb_version : v1.2.0
34
+ ci_tools_version : v1.2.0
35
+ extension_name : chsql
26
36
27
37
duckdb-stable-build :
28
38
name : Build extension binaries
31
41
duckdb_version : v1.2.1
32
42
ci_tools_version : v1.2.1
33
43
extension_name : chsql
34
-
44
+
45
+ release-all-artifacts :
46
+ name : Process Extension Artifacts
47
+ needs : [duckdb-1-2-0-build, duckdb-stable-build]
48
+ if : github.event_name == 'release' && github.event.action == 'published'
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - uses : actions/checkout@v4
52
+
53
+ - name : Download all artifacts
54
+ uses : actions/download-artifact@v4
55
+ with :
56
+ path : downloaded-artifacts
57
+
58
+ - name : List downloaded artifacts
59
+ run : |
60
+ mkdir to-upload; \
61
+ echo "Artifacts downloaded:" \
62
+ ls -la downloaded-artifacts; \
63
+ for l in `ls downloaded-artifacts`; do \
64
+ VER=`echo $l | cut -d '-' -f 2`; \
65
+ ARCH=`echo $l| cut -d '-' -f 4`; \
66
+ EXT=`ls downloaded-artifacts/$l | cut -b 7-`; \
67
+ mv downloaded-artifacts/$l/chsql.$EXT to-upload/chsql.$VER.$ARCH.$EXT; \
68
+ done; \
69
+ echo "Artifacts to be uploaded:" \
70
+ ls -la to-upload
71
+
72
+ - name : Upload Release Assets
73
+ uses : softprops/action-gh-release@v1
74
+ with :
75
+ files : to-upload/*
0 commit comments