From 77f41334557ef1f35ddf8c9f2c6c336f54a75bb8 Mon Sep 17 00:00:00 2001 From: Zach Date: Thu, 2 Nov 2023 08:11:58 -0600 Subject: [PATCH] Create docc.yml (#2) --- .github/workflows/docc.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/docc.yml diff --git a/.github/workflows/docc.yml b/.github/workflows/docc.yml new file mode 100644 index 0000000..b9d19e2 --- /dev/null +++ b/.github/workflows/docc.yml @@ -0,0 +1,36 @@ +name: docc +on: + push: + branches: ["main"] +permissions: + contents: read + pages: write + id-token: write +concurrency: + 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 AppState \ + -derivedDataPath /tmp/docbuild \ + -destination 'generic/platform=iOS'; + $(xcrun --find docc) process-archive \ + transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/AppState.doccarchive \ + --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