Add files via upload #46
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
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 | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./unicornpages |