Use this action if you want to automate the build task of Vivliostyle CLI. Combine this GitHub Action with your GitHub repository to enable continuous documentation generation and publication builds!
Please refer the Vivliostyle CLI documentation for the details of vivliostyle.config.js
, which works internally on this action.
jobs:
vivliostyle-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: vivliostyle/action@v1
with:
input: index.html
if-no-files-found: error
jobs:
vivliostyle-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: vivliostyle/action@v1
with:
input: vivliostyle.config.js
cli-version: 5
artifact-name: artifact-markdown
if-no-files-found: error
Name | Description | Default |
---|---|---|
input |
An input file or location of Vivliostyle config file. | . (Looks vivliostyle.config.js in root directory automatically) |
cli-version |
Using version of Vivliostyle CLI. | latest |
artifact-name |
Artifact name to upload built files. | vivliostyle-artifact |
if-no-files-found |
The desired behavior if no files are found to upload artifacts. (Available Options: warn error ignore ) |
warn |
retention-days |
Duration after which artifact will expire in days. 0 means using default retention. Minimum 1 day. Maximum 90 days unless changed from the repository settings page. | - |