mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 01:30:21 -07:00
release: tweak how sha256sum is invoked
The output would ideally just have the basename of the file and not a meaningless relative path. Fixes #2654
This commit is contained in:
parent
8575d26179
commit
2d518dd1f9
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -332,14 +332,15 @@ jobs:
|
||||
run: |
|
||||
cargo deb --profile deb --target ${{ env.TARGET }}
|
||||
version="${{ needs.create-release.outputs.version }}"
|
||||
deb="target/${{ env.TARGET }}/debian/ripgrep_$version-1_amd64.deb"
|
||||
echo "DEB=$deb" >> $GITHUB_ENV
|
||||
echo "DEB_DIR=target/${{ env.TARGET }}/debian" >> $GITHUB_ENV
|
||||
echo "DEB_NAME=ripgrep_$version-1_amd64.deb" >> $GITHUB_ENV
|
||||
|
||||
- name: Create sha256 sum of deb file
|
||||
shell: bash
|
||||
run: |
|
||||
sum="$DEB.sha256"
|
||||
shasum -a 256 "$DEB" > "$sum"
|
||||
cd "$DEB_DIR"
|
||||
sum="$DEB_NAME.sha256"
|
||||
shasum -a 256 "$DEB_NAME" > "$sum"
|
||||
echo "SUM=$sum" >> $GITHUB_ENV
|
||||
|
||||
- name: Upload release archive
|
||||
@ -347,5 +348,6 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
shell: bash
|
||||
run: |
|
||||
cd "$DEB_DIR"
|
||||
version="${{ needs.create-release.outputs.version }}"
|
||||
gh release upload "$version" ${{ env.DEB }} ${{ env.SUM }}
|
||||
gh release upload "$version" "$DEB_NAME" "$SUM"
|
||||
|
@ -4,6 +4,8 @@ This is a patch release with a few small bug fixes.
|
||||
|
||||
Bug fixes:
|
||||
|
||||
* [BUG #2654](https://github.com/BurntSushi/ripgrep/issues/2654):
|
||||
Fix `deb` release sha256 sum file.
|
||||
* [BUG #2659](https://github.com/BurntSushi/ripgrep/issues/2659):
|
||||
Fix Fish shell completions.
|
||||
* [BUG #2662](https://github.com/BurntSushi/ripgrep/issues/2662):
|
||||
|
Loading…
x
Reference in New Issue
Block a user