mirror of https://github.com/cirruslabs/tart.git
.ci/set-version.sh: use temporary file (#93)
* .ci/set-version.sh: use temporary file * Update .ci/set-version.sh Co-authored-by: Fedor Korotkov <fedor.korotkov@gmail.com> Co-authored-by: Fedor Korotkov <fedor.korotkov@gmail.com>
This commit is contained in:
parent
54a321df7f
commit
13b05d75c5
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat Sources/tart/CI/CI.swift | envsubst | tee Sources/tart/CI/CI.swift
|
||||
TMPFILE=$(mktemp)
|
||||
envsubst < Sources/tart/CI/CI.swift > $TMPFILE
|
||||
mv $TMPFILE Sources/tart/CI/CI.swift
|
||||
|
|
|
|||
|
|
@ -11,12 +11,9 @@ builds:
|
|||
|
||||
before:
|
||||
hooks:
|
||||
- cmd: .ci/set-version.sh
|
||||
output: true
|
||||
- cmd: swift build -c release --product tart
|
||||
output: true
|
||||
- cmd: codesign --sign - --entitlements Resources/tart.entitlements --force .build/arm64-apple-macosx/release/tart
|
||||
output: true
|
||||
- .ci/set-version.sh
|
||||
- swift build -c release --product tart
|
||||
- codesign --sign - --entitlements Resources/tart.entitlements --force .build/arm64-apple-macosx/release/tart
|
||||
|
||||
archives:
|
||||
- id: binary
|
||||
|
|
|
|||
Loading…
Reference in New Issue