Skip to content

Commit

Permalink
Move Make Static Site step to Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
akaDuality committed Dec 17, 2023
1 parent eaad2b0 commit 6c4cded
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,11 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v2

- name: Build
- name: Compile
run: >
xcodebuild docbuild -scheme ${{ env.SCHEME }}
-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/${{ env.SCHEME }}.doccarchive
--output-path ${{ env.ARTEFACT_PATH }}
--hosting-base-path ${{ env.HOSTING_BASE_PATH }}
deploy:
needs: update-docs
Expand All @@ -63,6 +56,13 @@ jobs:

runs-on: 'macos-13'
steps:
- name: Make Static Site
run: >
$(xcrun --find docc) process-archive
transform-for-static-hosting ${{ env.DERIVED_DATA_PATH }}Build/Products/Debug-iphoneos/${{ env.SCHEME }}.doccarchive
--output-path ${{ env.ARTEFACT_PATH }}
--hosting-base-path ${{ env.HOSTING_BASE_PATH }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down

0 comments on commit 6c4cded

Please sign in to comment.