diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index ae3af90..9582448 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -30,7 +30,7 @@ jobs: uses: actions/configure-pages@v5 - name: Build DocC run: | - make generate-doc + make generate-docs - name: Upload artifact uses: actions/upload-pages-artifact@v4 with: diff --git a/Makefile b/Makefile index beff561..af96807 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ generate-docs: # Dynamically add the swift-docc-plugin for doc generation cp Package.swift Package.swift.bak for manifest in Package.swift Package@*.swift ; do \ - if [[ -f "$$manifest" ]] && ! grep -E -i "https://github.com/(apple|swiftlang)/swift-docc-plugin" "$$manifest" ; then \ + if [ -f "$$manifest" ] && ! grep -E -i "https://github.com/(apple|swiftlang)/swift-docc-plugin" "$$manifest" ; then \ echo "package.dependencies.append(" >> "$$manifest" ; \ echo " .package(url: \"https://github.com/swiftlang/swift-docc-plugin\", from: \"1.4.5\")" >> "$$manifest" ; \ echo ")" >> "$$manifest" ; \