diff options
author | vaxerski <[email protected]> | 2023-04-27 14:28:40 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-04-27 14:28:40 +0100 |
commit | 5ce76cd0b01fcdcb8436b6ae1447fb17c17c13a5 (patch) | |
tree | 90ec4be50f9923cc88af17b96cf0416c22a53654 /.github | |
parent | 49f9ca06c7c023460c613d76b2519c5abe7b8cbe (diff) | |
download | Hyprland-5ce76cd0b01fcdcb8436b6ae1447fb17c17c13a5.tar.gz Hyprland-5ce76cd0b01fcdcb8436b6ae1447fb17c17c13a5.zip |
internal: add tag to version, send hash in release ci
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7aaaec57..a092d07c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,7 +17,9 @@ jobs: - name: Create tarball with submodules id: tar - run: mkdir hyprland-source; mv ./* ./hyprland-source || tar -czv --owner=0 --group=0 --no-same-owner --no-same-permissions -f source.tar.gz * + run: | + sed -i "1s/^/#define GIT_COMMIT_HASH $(git rev-parse HEAD)\n#define GIT_TAG \"$(git describe --tags)\"\n/" ./src/defines.hpp + mkdir hyprland-source; mv ./* ./hyprland-source || tar -czv --owner=0 --group=0 --no-same-owner --no-same-permissions -f source.tar.gz * - id: whatrelease name: Get latest release |