Skip to content

Commit d271d77

Browse files
author
Di Wu
authored
ci: use default checkout action on deploy step (#2838)
1 parent c65904f commit d271d77

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
- add_ssh_keys:
202202
fingerprints:
203203
- '3f:b4:9f:aa:0b:d7:c5:16:fb:44:44:35:cb:a7:70:e0'
204-
- shallow_checkout
204+
- checkout
205205
- ruby/install-deps
206206
- run:
207207
name: Release Amplify for Swift

CircleciScripts/jazzy_doc_gen.sh

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,13 @@
55

66
set -e
77

8-
REPO="aws-amplify/amplify-swift.git"
8+
echo "Working Directory: $CIRCLE_WORKING_DIRECTORY"
99

10-
git clone [email protected]:$REPO $(mktemp -d -t amplify-release)
11-
TEMP_DIR=$_
10+
cd $CIRCLE_WORKING_DIRECTORY
11+
bundle exec jazzy --swift-build-tool spm --build-tool-arguments -Xswiftc,-swift-version,-Xswiftc,5
12+
ln -s ../readme-images docs
13+
git add docs
14+
git commit -m "chore: update API docs [skip ci]"
15+
git push origin HEAD:gh-pages -f
1216

13-
echo "Temporary Directory: $TEMP_DIR"
14-
15-
generate_docs() {
16-
cd $TEMP_DIR
17-
git checkout gh-pages
18-
git reset --hard origin/release
19-
gem install -n /usr/local/bin jazzy
20-
jazzy --swift-build-tool spm --build-tool-arguments -Xswiftc,-swift-version,-Xswiftc,5
21-
ln -s ../readme-images docs
22-
git add docs
23-
git commit -m "chore: update API docs [skip ci]"
24-
git push --force
25-
}
26-
27-
generate_docs
28-
29-
set +e
17+
set +e

0 commit comments

Comments
 (0)