55 description : " Release target"
66 required : true
77 category :
8- description : " Release default/hdfs/udf/testsuite"
8+ description : " Release default/hdfs/udf/testsuite/dbg "
99 required : false
1010 default : default
1111 version :
@@ -15,14 +15,24 @@ inputs:
1515runs :
1616 using : " composite"
1717 steps :
18- - name : Download artifact
18+ - name : Download artifact for dbg
19+ if : inputs.category == 'dbg'
1920 uses : ./.github/actions/artifact_download
2021 with :
2122 sha : ${{ github.sha }}
2223 target : ${{ inputs.target }}
23- category : ${{ inputs.category }}
24+ category : default
2425 path : distro/bin
2526 artifacts : metactl,meta,query,query.debug
27+ - name : Download artifact for others
28+ if : inputs.category != 'dbg'
29+ uses : ./.github/actions/artifact_download
30+ with :
31+ sha : ${{ github.sha }}
32+ target : ${{ inputs.target }}
33+ category : ${{ inputs.category }}
34+ path : distro/bin
35+ artifacts : metactl,meta,query
2636 - name : Get Latest BendSQL
2737 id : bendsql
2838 uses : pozetroninc/github-action-get-latest-release@master
5363 cp ./scripts/distribution/configs/databend-* distro/configs/
5464 cp ./scripts/distribution/release-readme.txt distro/readme.txt
5565 cp -r ./scripts/distribution/package-scripts/* distro/scripts/
56- tar -C ./distro --exclude='*.debug' - czvf ${pkg_name}.tar.gz bin configs systemd scripts readme.txt
66+ tar -C ./distro -czvf ${pkg_name}.tar.gz bin configs systemd scripts readme.txt
5767 sha256sum ${pkg_name}.tar.gz >> sha256-${pkg_name}.txt
5868 echo "pkg_name=$pkg_name" >> $GITHUB_OUTPUT
5969 - name : post sha256
6878 name : ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz
6979 path : ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz
7080 retention-days : 1
71- - name : Pack DBG Binaries
72- id : pack_dbg_binaries
73- shell : bash
74- run : |
75- target=${{ inputs.target }}
76- version=${{ inputs.version }}
77- case ${{ inputs.category }} in
78- default)
79- pkg_name="databend-dbg-${version}-${target}"
80- ;;
81- *)
82- pkg_name="databend-dbg-${{ inputs.category }}-${version}-${target}"
83- ;;
84- esac
85- mkdir -p distro/{bin,configs,systemd,scripts}
86- cp ./scripts/distribution/systemd/databend-* distro/systemd/
87- cp ./scripts/distribution/configs/databend-* distro/configs/
88- cp ./scripts/distribution/release-readme.txt distro/readme.txt
89- cp -r ./scripts/distribution/package-scripts/* distro/scripts/
90- tar -C ./distro -czvf ${pkg_name}.tar.gz bin configs systemd scripts readme.txt
91- sha256sum ${pkg_name}.tar.gz >> sha256-${pkg_name}.txt
92- echo "pkg_name=$pkg_name" >> $GITHUB_OUTPUT
93- - name : post dbg sha256
94- uses : actions/upload-artifact@v4
95- with :
96- name : sha256sums-${{ inputs.category }}-${{ inputs.target }}-gdb
97- path : sha256-${{ steps.pack_dbg_binaries.outputs.pkg_name }}.txt
98- retention-days : 1
99- - name : post dbg binaries
100- uses : actions/upload-artifact@v4
101- with :
102- name : ${{ steps.pack_dbg_binaries.outputs.pkg_name }}.tar.gz
103- path : ${{ steps.pack_dbg_binaries.outputs.pkg_name }}.tar.gz
104- retention-days : 1
0 commit comments