ci(release): also gen sha256sum
@@ -381,6 +381,16 @@ jobs:
export version="${{ needs.create_release.outputs.version }}"
export path="distro"
nfpm pkg --packager ${{ matrix.packager }} -f <(envsubst '${name} ${version} ${path}' < .github/actions/publish_binary/nfpm.yaml)
+ - name: generate sha256sums
+ run: |
+ version="${{ needs.create_release.outputs.version }}"
+ sha256sum databend_*.${{ matrix.packager }} >> sha256-${version}-${{ matrix.packager }}.txt
+ - name: post sha256
+ uses: actions/upload-artifact@v2
+ with:
+ name: sha256sums
+ path: sha256-${{ needs.create_release.outputs.version }}-${{ matrix.packager }}.txt
+ retention-days: 1
- name: Update release to github
shell: bash
# Reference: https://cli.github.com/manual/gh_release_upload
@@ -393,7 +403,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
upload-sha256sums-plugin:
- needs: [create_release, publish_linux, publish_macos]
+ needs: [create_release, publish_linux, publish_macos, release_packages]
runs-on: ubuntu-latest
name: upload-sha256sums
steps:
