Include commit hash in CI builds

This commit is contained in:
Agatha Lovelace 2023-04-15 14:11:53 +02:00
parent d007d1f2f7
commit be1fed9ee7
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
1 changed files with 3 additions and 1 deletions

View File

@ -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