Skip to content

Commit 6c28785

Browse files
authoredMar 20, 2025
Merge pull request #23 from quackscience/fix/read_parquet_mergetree
feat: publish extensions on internal release
2 parents 88ee1ab + 955125b commit 6c28785

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed
 

‎.github/workflows/MainDistributionPipeline.yml

+42-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
- "*/**.yml"
1010
pull_request:
1111
workflow_dispatch:
12+
release:
13+
types: [published]
1214

1315
concurrency:
1416
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }}
@@ -23,6 +25,14 @@ jobs:
2325
# duckdb_version: 1.1.2
2426
# ci_tools_version: 1.1.2
2527
# 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
2636

2737
duckdb-stable-build:
2838
name: Build extension binaries
@@ -31,4 +41,35 @@ jobs:
3141
duckdb_version: v1.2.1
3242
ci_tools_version: v1.2.1
3343
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

Comments
 (0)
Failed to load comments.