-
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
2 changed files
with
30 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: RoCrate to GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main # Set a branch name to trigger deployment | ||
pull_request: | ||
jobs: | ||
build-html: | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
# Checkout this repo | ||
- uses: actions/checkout@v3 | ||
|
||
# Build the preview.html file from the rocrate.json | ||
- name: Build Preview HTML | ||
uses: vliz-be-opsci/rocrate-to-pages@latest | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./unicornpages |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
multiple_rocrates: false | ||
RELEASE_management: true | ||
RELEASE_versioning: tag #by major tag or by release | ||
INCLUDE_draft: true #include draft release which is the latest commit on the main branch | ||
index_html: true #generate an index.html file for each rocrate | ||
draft_folder_name: latest #name of the folder for the draft release |