diff --git a/.github/workflows/docc.yml b/.github/workflows/docc.yml index 8cfc596..e2d65e3 100644 --- a/.github/workflows/docc.yml +++ b/.github/workflows/docc.yml @@ -1,37 +1,39 @@ name: docc -on: +'on': push: - branches: ["main"] + branches: + - main permissions: contents: read pages: write id-token: write concurrency: - group: "pages" + group: pages cancel-in-progress: true jobs: pages: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: macos-12 - steps: - - name: git checkout - uses: actions/checkout@v3 - - name: docbuild - run: | - xcodebuild docbuild -scheme Waiter \ - -derivedDataPath /tmp/docbuild \ - -destination 'generic/platform=iOS'; - $(xcrun --find docc) process-archive \ - transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Waiter.doccarchive \ - --hosting-base-path Waiter \ - --output-path docs; - echo "" > docs/index.html; - - name: artifacts - uses: actions/upload-pages-artifact@v1 - with: - path: 'docs' - - name: deploy - id: deployment - uses: actions/deploy-pages@v1 + environment: + name: github-pages + url: '${{ steps.deployment.outputs.page_url }}' + runs-on: macos-12 + steps: + - name: git checkout + uses: actions/checkout@v3 + - name: docbuild + run: > + xcodebuild docbuild -scheme Waiter \ + -derivedDataPath /tmp/docbuild \ + -destination 'generic/platform=iOS'; + $(xcrun --find docc) process-archive \ + transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Waiter.doccarchive \ + --hosting-base-path Waiter \ + --output-path docs; + echo "" > docs/index.html; + - name: artifacts + uses: actions/upload-pages-artifact@v1 + with: + path: docs + - name: deploy + id: deployment + uses: actions/deploy-pages@v1