Skip to content

Commit

Permalink
added rocrate to pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricdcc authored Aug 23, 2023
1 parent 7df04fb commit 385f642
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rocrate_to_pages.yml
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
6 changes: 6 additions & 0 deletions config.yml
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

0 comments on commit 385f642

Please sign in to comment.