Skip to content

Commit

Permalink
Merge pull request #363 from fengzeroz/main
Browse files Browse the repository at this point in the history
ci: add checksum file for package
  • Loading branch information
fengzeroz authored Mar 25, 2022
2 parents ec309a5 + 6660764 commit c997f11
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,19 @@ jobs:
- id: package
run: echo "::set-output name=name::${{ matrix.type }}-${{ steps.get_version.outputs.version }}-${{ matrix.arch }}.${{ matrix.package }}"

- name: gen packages sha256
run: sudo bash -c "echo $(sha256sum ./${{ steps.package.outputs.name }} | awk '{print $1}') > ./${{ steps.package.outputs.name }}.sha256"

- uses: actions/upload-release-asset@v1
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ steps.package.outputs.name}}.sha256
asset_name: ${{ matrix.type }}-${{ steps.get_version.outputs.version }}-linux-${{ matrix.arch }}.${{ matrix.package }}.sha256
asset_content_type: application/octet-stream

- uses: actions/upload-release-asset@v1
if: github.event_name == 'release'
env:
Expand Down

0 comments on commit c997f11

Please sign in to comment.