This action generates and combines jazzy docs for all products of a Swift package.
The path to the Swift package.
Default: ${{github.workspace}}
.
The version to use when generating the docs.
The path to the output folder.
Whether a previous output should be removed before generating docs.
Default: false
Tells the action to use xcodebuild
(instead of swift build
) and passes the value as -destination
to xcodebuild
.
This parameter can be useful if a package is e.g. iOS only.
Note that currently, swifty-docs-action creates docs for the unique set of targets of all the defined products in the SwiftPM package.
Thus, there are a set of requirements that go along with the xcodebuild-destination
parameter:
- All targets that are referenced by a product must have a corresponding scheme. This can either happen by Xcode's automatic scheme generation, or manually (in which case the
.swiftpm
must be commited to the repository). - The
xcodebuild-destination
is applied as-destination
to all builds. Selectively controlling this might come in a future update.
Note that this parameter is only respected when run on macOS.
Use the following snippet in a Swift package repository to generate jazzy docs for all products of your Swift package:
uses: sersoft-gmbh/swifty-docs-action@v1
with:
# Optional. Defaults to ${{github.workspace}}.
source: ${{github.workspace}}
# Optional. E.g. run this action on tags and use the tag name.
module-version: 1.2.3
# Optional.
output: docs
# Optional. Defaults to true.
clean: true