Skip to content

Commit

Permalink
build(dist): generate sha256sums, include as release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Feb 21, 2024
1 parent 20dfc6e commit e527ee1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,15 @@ jobs:
NETWORK: ${{matrix.network}}
- uses: actions/upload-artifact@v4
with:
path: bash-completion-*.tar.xz
path: |
bash-completion-*.tar.xz
sha256sums.txt
if: matrix.dist == 'alpine'
- name: Upload release assets
run: |
set -x
gh release upload ${{steps.release.outputs.tag_name}} \
bash-completion-$(cat version.txt).tar.xz
bash-completion-$(cat version.txt).tar.xz sha256sums.txt
env:
GH_TOKEN: ${{github.token}}
if: steps.release.outputs.release_created
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pytestdebug.log
/bash-completion-config.cmake
/bash-completion.pc
/bash_completion.sh
/sha256sums.txt

# Files generated by autotools
Makefile
Expand Down
1 change: 1 addition & 0 deletions test/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ make -j
xvfb-run make distcheck \
PYTESTFLAGS="${PYTESTFLAGS---verbose -p no:cacheprovider --numprocesses=auto --dist=loadfile}"
cp -p bash-completion-*.tar.* "$oldpwd/"
sha256sum bash-completion-*.tar.* >"$oldpwd/sha256sums.txt"

0 comments on commit e527ee1

Please sign in to comment.