Skip to content

Commit 57a22d9

Browse files
committed
Execute before_deploy in CI only once
1 parent a481ccd commit 57a22d9

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.travis.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@ jobs:
3232
- brew install sourcekitten
3333
- gem install -N jazzy
3434
before_deploy:
35-
# Necessary for correct SourceKitten processing.
36-
- swift build
37-
# Build Carthage archive.
38-
- carthage build --no-skip-current
39-
- carthage archive BitByteData
40-
# Generate documentation.
41-
- sourcekitten doc --spm-module BitByteData > docs.json
42-
- jazzy
35+
- >
36+
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
37+
export BEFORE_DEPLOY_RUN=1;
38+
# Necessary for correct SourceKitten processing.
39+
swift build
40+
# Build Carthage archive.
41+
carthage build --no-skip-current
42+
carthage archive BitByteData
43+
# Generate documentation.
44+
sourcekitten doc --spm-module BitByteData > docs.json
45+
jazzy
46+
fi
4347
deploy:
4448
- provider: releases
4549
skip_cleanup: true

0 commit comments

Comments
 (0)