Skip to content

Commit

Permalink
Update publish-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-vasilev committed Jan 5, 2024
1 parent 4bee085 commit 46b4123
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches:
- main
- dev
pull_request:
paths:
- '.swiftlint.yml'
- ".github/workflows/**"
- "Package.swift"
- "Source/**"
- "Tests/**"

permissions:
contents: read
Expand All @@ -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:
Expand Down

0 comments on commit 46b4123

Please sign in to comment.