Skip to content

Commit a60c127

Browse files
committed
ci(release): also gen sha256sum
1 parent 7889923 commit a60c127

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/databend-release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,16 @@ jobs:
381381
export version="${{ needs.create_release.outputs.version }}"
382382
export path="distro"
383383
nfpm pkg --packager ${{ matrix.packager }} -f <(envsubst '${name} ${version} ${path}' < .github/actions/publish_binary/nfpm.yaml)
384+
- name: generate sha256sums
385+
run: |
386+
version="${{ needs.create_release.outputs.version }}"
387+
sha256sum databend_*.${{ matrix.packager }} >> sha256-${version}-${{ matrix.packager }}.txt
388+
- name: post sha256
389+
uses: actions/upload-artifact@v2
390+
with:
391+
name: sha256sums
392+
path: sha256-${{ needs.create_release.outputs.version }}-${{ matrix.packager }}.txt
393+
retention-days: 1
384394
- name: Update release to github
385395
shell: bash
386396
# Reference: https://cli.github.com/manual/gh_release_upload
@@ -393,7 +403,7 @@ jobs:
393403
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
394404

395405
upload-sha256sums-plugin:
396-
needs: [create_release, publish_linux, publish_macos]
406+
needs: [create_release, publish_linux, publish_macos, release_packages]
397407
runs-on: ubuntu-latest
398408
name: upload-sha256sums
399409
steps:

0 commit comments

Comments
 (0)