Skip to content

Commit

Permalink
Use two step xcode build
Browse files Browse the repository at this point in the history
  • Loading branch information
akaDuality committed Dec 9, 2023
1 parent de87325 commit 9f8c810
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ jobs:

- name: Build
run: |
swift package --allow-writing-to-directory ${{ env.DERIVED_DATA_PATH }} generate-documentation --target ${{ env.SCHEME }} --destination ${{ env.DESTINATION }} --disable-indexing --transform-for-static-hosting --hosting-base-path '${{ env.HOSTING_BASE_PATH }}' --output-path ${{ env.DERIVED_DATA_PATH }}
xcodebuild docbuild -scheme AccessibilityDocumentation -destination 'generic/platform=iOS' -derivedDataPath ${{ env.DERIVED_DATA_PATH }}
- name: Build
run: |
$(xcrun --find docc) process-archive transform-for-static-hosting ${{ env.DERIVED_DATA_PATH }}Build/Products/Debug-iphoneos/AccessibilityDocumentation.doccarchive --output-path ../docs --hosting-base-path AccessibilityDocumentation
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ${{ env.DERIVED_DATA_PATH }}
path: ../docs

- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 9f8c810

Please sign in to comment.