diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9ff651c..a29f0b0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,7 @@ on: branches: [ main ] paths: - 'Sources/**' + - 'Package.swift' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -28,24 +29,25 @@ jobs: # Runs a set of commands using the runners shell - name: Build docs run: > - swift package --allow-writing-to-directory ./docs generate-documentation \ - --target YumemiWeather \ - --disable-indexing \ - --transform-for-static-hosting \ - --hosting-base-path ios-training \ - --output-path ./docs + xcodebuild docbuild -scheme YumemiWeather \ + -derivedDataPath /tmp/docbuild \ + -destination 'generic/platform=iOS' + $(xcrun --find docc) process-archive \ + transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/YumemiWeather.doccarchive \ + --hosting-base-path ios-training \ + --output-path docs - uses: actions/upload-pages-artifact@v2 with: path: docs - deploy: - needs: build - permissions: - pages: write - id-token: write - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - uses: actions/deploy-pages@v2 - id: deployment + # deploy: + # needs: build + # permissions: + # pages: write + # id-token: write + # runs-on: ubuntu-latest + # environment: + # name: github-pages + # url: ${{ steps.deployment.outputs.page_url }} + # steps: + # - uses: actions/deploy-pages@v2 + # id: deployment