diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf7b04c53..7c1e87161 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,19 +53,28 @@ jobs: - name: Zip Documentations run: cd documentations/Build/Products/Debug; zip ../../../../documentation.zip DXFeedFramework.doccarchive -r; cd - - - name: Checkl file + - name: Create HTML Docs + run: ./build_doc.sh ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/} + shell: sh + + - name: Commit Docs + run: | + git add docs + git commit -m "Update DocC" + + - name: Check file run: ls -al release_sp.sh - name: Calculate package checksum run: ./release_sp.sh ${{ github.ref_name }} DXFeedFramework shell: sh - - name: Commit files + - name: Commit spm update run: | git config --local user.name "GitHub Action" git commit Package.swift -m "Update Package.swift" - - name: Push to swift branch. Update swift package. + - name: Push to swift branch. Update swift package and DocC. uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/DXFeedFramework/Api/DXFeed.swift b/DXFeedFramework/Api/DXFeed.swift index 5a85b4849..3556748ca 100644 --- a/DXFeedFramework/Api/DXFeed.swift +++ b/DXFeedFramework/Api/DXFeed.swift @@ -102,6 +102,7 @@ public extension DXFeed { return Promise(native: nativePromise) } + @available(iOS 13.0, *) @available(macOS 10.15, *) func getTimeSeries(type: IEventType.Type, symbol: Symbol, fromTime: Long, toTime: Long) -> Task<[MarketEvent]?, Error> { let task = Task { diff --git a/build_doc.sh b/build_doc.sh index 983df21cb..858916eb0 100755 --- a/build_doc.sh +++ b/build_doc.sh @@ -1,7 +1,8 @@ +echo $1 xcodebuild docbuild -scheme DXFeedFramework -derivedDataPath documentations/ `(xcrun --find docc)` process-archive \ transform-for-static-hosting documentations/Build/Products/Debug/DXFeedFramework.doccarchive \ --output-path docs \ ---hosting-base-path dxfeed-graal-swift-api +--hosting-base-path $1