From d86a2419826a94b7eddbe61d0549ec7bebb817cf Mon Sep 17 00:00:00 2001 From: Daniel Saidi Date: Thu, 1 Sep 2022 15:55:17 +0200 Subject: [PATCH] Adjust Fastlane to build documentation for new versions --- Fastlane/Fastfile | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/Fastlane/Fastfile b/Fastlane/Fastfile index 58469d4..8132f9c 100644 --- a/Fastlane/Fastfile +++ b/Fastlane/Fastfile @@ -5,6 +5,14 @@ default_platform :ios platform :ios do + # Documentation ============== + + desc "Build Documentation" + lane :documentation do + docc_web + end + + # Lint ======================= desc "Run SwiftLint" @@ -30,7 +38,7 @@ platform :ios do lint test - docc + documentation bump_type = options[:type] version = version_bump_podspec( @@ -95,27 +103,4 @@ platform :ios do --hosting-base-path SwiftKit') end - desc "Build static web documentation (macOS only)" - lane :docc_web_plugin do - sh('cd .. && mkdir -p Docs') - sh('cd .. && swift package \ - --allow-writing-to-directory Docs \ - generate-documentation \ - --disable-indexing \ - --transform-for-static-hosting \ - --hosting-base-path SwiftKit \ - --output-path Docs/web') - end - - desc "Build and preview static documentation website (macOS only)" - lane :docc_webpreview_plugin do - sh('cd .. && mkdir -p Docs') - sh('cd .. && swift package \ - --disable-sandbox \ - preview-documentation \ - --transform-for-static-hosting \ - --hosting-base-path SwiftKit \ - --output-path Docs/web') - end - end