From 00ca6cc311396cb47bfe8869d993c2bb5845859c Mon Sep 17 00:00:00 2001 From: Jens Troest Date: Sun, 17 Mar 2024 13:20:11 -0700 Subject: [PATCH] Update build-deploy-DocC.yml Update action versions --- .github/workflows/build-deploy-DocC.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-deploy-DocC.yml b/.github/workflows/build-deploy-DocC.yml index 077e6fb..873958a 100644 --- a/.github/workflows/build-deploy-DocC.yml +++ b/.github/workflows/build-deploy-DocC.yml @@ -25,24 +25,24 @@ jobs: runs-on: macos-14 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Force Xcode 15.2 run: sudo xcode-select -s "/Applications/Xcode_15.2.app" - name: Build DocC run: | swift package resolve; - swift package plugin --allow-writing-to-directory ./docs/ generate-documentation --disable-indexing --output-path ./docs; - - echo "** Archived documentation**" - - echo "" > docs/index.html; - + swift package plugin --allow-writing-to-directory docs generate-documentation --disable-indexing --output-path ./docs; + generate-documentation \ + --disable-indexing \ + --transform-for-static-hosting \ + --hosting-base-path '' \ + --output-path docs - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: # Upload only docs directory path: 'docs' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4