-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (44 loc) · 1.33 KB
/
rocrate_to_pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: RoCrate to GitHub Pages
on:
push:
branches:
- main # Set a branch name to trigger deployment
pull_request:
jobs:
update-rocrate:
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: Rocrate fixer
uses: vliz-be-opsci/rocrate-fix@latest
with:
extra_metadata: extra_metadata.json
- name: git-auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v4
build-html:
needs: update-rocrate
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
with:
multiple_rocrates: false
RELEASE_management: true
RELEASE_versioning: tag
INCLUDE_draft: true
index_html: true
draft_folder_name: latest
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./unicornpages