diff --git a/.github/workflows/update_docs.yml b/.github/workflows/update_docs.yml index 6f4af78..3e25db9 100644 --- a/.github/workflows/update_docs.yml +++ b/.github/workflows/update_docs.yml @@ -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 @@ -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: