summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2023-11-27 20:05:58 -0500
committerAndrew Gallant <jamslam@gmail.com>2023-11-27 21:17:12 -0500
commit2d518dd1f96147690c1eadf58023cec3eb0e108a (patch)
treec965fc6853af607556f2b8ddf0b4157d1f668fb2 /.github
parent8575d261790fe393d1768d12b3336cbb4cf0a9fc (diff)
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
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 43fc553f..b10c0761 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -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"