Skip to content

Commit b102258

Browse files
committed
Improve the build workflow
1 parent bbac056 commit b102258

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/dist_pipeline.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,35 @@ jobs:
3030
extension_name: infera
3131
enable_rust: true
3232
exclude_archs: "windows_amd64_mingw;osx_amd64;wasm_mvp;wasm_eh;wasm_threads"
33+
34+
create-release-draft:
35+
name: Create draft release with built binaries
36+
needs:
37+
- duckdb-next-stable-build
38+
- duckdb-stable-build
39+
if: startsWith(github.ref, 'refs/tags/')
40+
runs-on: ubuntu-latest
41+
permissions:
42+
contents: write
43+
steps:
44+
- name: Download all build artifacts
45+
uses: actions/download-artifact@v4
46+
with:
47+
path: dist
48+
merge-multiple: true
49+
- name: List artifacts
50+
run: |
51+
echo "Downloaded artifacts to: $(pwd)/dist"
52+
ls -la dist || true
53+
find dist -type f -maxdepth 2 -print || true
54+
- name: Create draft release and upload assets
55+
uses: softprops/action-gh-release@v2
56+
with:
57+
draft: true
58+
name: Infera ${{ github.ref_name }}
59+
tag_name: ${{ github.ref_name }}
60+
generate_release_notes: true
61+
files: |
62+
dist/**
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)