From 46b4123374438db4d80be55da5d11530683e6e07 Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Fri, 5 Jan 2024 09:40:06 +0100 Subject: [PATCH] Update `publish-pages.yml` --- .github/workflows/publish-pages.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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: