mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-18 21:47:08 +02:00
.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:
co-authored by
Fedor Korotkov
parent
54a321df7f
commit
13b05d75c5
+3
-1
@@ -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
|
||||
|
||||
+3
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user