-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
# build-flip-forge | ||
|
||
Build a static page with flip-forge from a PDF | ||
Build a static page with flip-forge from a PDF. Current only works on ubuntu workflows. | ||
|
||
## Example usage | ||
|
||
```yaml | ||
- name: build-flip-forge | ||
id: build | ||
uses: flip-forge/build-flip-forge@v1 | ||
with: | ||
# REQUIRED! Path to the PDF file that will be converted to a flipbook | ||
file: "book.pdf" | ||
|
||
# Meta title used as the HTML page title: | ||
title: "Flipbook with flip-forge" | ||
|
||
# Background color of the generated web page | ||
backgroundColor: "#000000" | ||
|
||
# Toolbar color used in the generate web page | ||
toolbarColor: "#ffffff" | ||
|
||
# Meta description used in the generated web pages | ||
description: "Flipbook description" | ||
``` | ||
## Outputs | ||
- `dist` points to the dist folder with the generated static files. | ||
Example usage for GitHub pages: | ||
```yaml | ||
- name: build-flip-forge | ||
id: build | ||
uses: flip-forge/build-flip-forge@v1 | ||
with: | ||
file: "book.pdf" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ${{ steps.build.outputs.dist }} | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
``` |