Include commit hash in CI builds
This commit is contained in:
parent
d007d1f2f7
commit
be1fed9ee7
|
@ -11,7 +11,9 @@ jobs:
|
|||
- uses: cachix/install-nix-action@v12
|
||||
- name: Building package
|
||||
run: nix-build . -A defaultPackage.x86_64-linux
|
||||
- name: Get commit hash
|
||||
run: echo "COMMIT_HASH=${GITHUB_SHA::6}" >> $GITHUB_ENV
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: url-eater-x86_64-linux
|
||||
name: url-eater-${{ env.COMMIT_HASH }}-x86_64-linux
|
||||
path: result/bin/url-eater
|
Loading…
Reference in New Issue