diff --git a/.github/workflows/publish-pages.yml b/.github/workflows/publish-pages.yml index fc324008c..8fe49d297 100644 --- a/.github/workflows/publish-pages.yml +++ b/.github/workflows/publish-pages.yml @@ -5,6 +5,13 @@ on: branches: - main - dev + pull_request: + paths: + - '.swiftlint.yml' + - ".github/workflows/**" + - "Package.swift" + - "Source/**" + - "Tests/**" permissions: contents: read @@ -26,7 +33,14 @@ jobs: uses: actions/checkout@v3 - name: Build DocC run: | - swift package --allow-writing-to-directory ./docs generate-documentation --target Flare --output-path ./docs; + swift build; + swift package \ + --allow-writing-to-directory ./docs \ + generate-documentation \ + --target Flare \ + --output-path ./docs \ + --transform-for-static-hosting \ + --hosting-base-path flare; - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: