Skip to content

Commit 2cd1c4b

Browse files
committed
✨ Inject version number into build
1 parent 7b48892 commit 2cd1c4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

taskfile.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ tasks:
2828
silent: true
2929
artifacts:
3030
deps: [test, lint]
31+
env:
32+
CURRENT_HASH:
33+
sh: git rev-parse --short HEAD
3134
cmds:
35+
- sed -i '' "s/APP_VERSION/$APP_VERSION-$CURRENT_HASH/g" Sources/Version.swift
3236
- swift build --configuration release --disable-sandbox --arch arm64
37+
- git checkout Sources/Version.swift
3338
silent: true
3439
install:
3540
requires:

0 commit comments

Comments
 (0)