Merge pull request #62 from openeduhub/oeh-lom-mappings #684
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: Build /public and delpoy to gh-pages with docker container | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- gh-pages | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
tags: | |
description: 'Test scenario tags' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
with: | |
persist-credentials: false | |
- name: remove public and data-dir if already exists | |
run: rm -rf public data | |
- run: mkdir public | |
- run: mkdir data | |
- run: git clone https://github.com/openeduhub/oeh-metadata-vocabs.git data/ | |
- name: build public dir with docker image | |
run: docker run -v $(pwd)/public:/app/public -v $(pwd)/data:/app/data laocoon667/openeduhub-skohub-vocabs:docker | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |
cname: vocabs.openeduhub.de |