-
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
13 additions
and
0 deletions.
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 |
---|---|---|
|
@@ -48,6 +48,19 @@ The action will run each time you push to the `main` branch. | |
The above workflow has steps to checkout your repo code, build `ro-crate-preview.html`, | ||
and commit this to the `gh-pages` branch. Note that this workflow will publish the whole of the repository "as-is" without any page rendering. | ||
|
||
### Specifying RO-Crate Root | ||
|
||
By default this action looks for `ro-crate-metadata.json` in the root of the repository. You can override the path to the RO-Crate root by providing the `crate_path` argument: | ||
|
||
```yaml | ||
- name: Build RO Crate Preview | ||
uses: ResearchObject/[email protected] | ||
with: | ||
crate_path: crates/example4 | ||
``` | ||
The above will look for `crates/example4/ro-crate-metadata.json` and generate `crates/example4/ro-crate-preview.html` and the symlink `crates/example4/index.html` | ||
|
||
### Automatic commit | ||
|
||
Instead of publishing the generated RO-Crate preview directly to GitHub Pages, you may prefer | ||
|