-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (58 loc) · 3.28 KB
/
process_vocab.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Configure action for processing vocabularies
# Setup for this action is defined in action.yml
# This can be run locally using act (https://github.com/nektos/act) like this:
# act -v -j build --
# This defines the workflow steps, most critically the values for the
# that will be passed to the Docker Container for use by the python code
# inside the container.
# Print and echo statments will appear in the workflow log in github when the
# action is executed.
# INSTRUCTIONS
# --the build/steps/uses value should be the name of your vocabulary repository.
# The @ value in this string specifies the branch that will be used.
# -- specify the action command in build/steps/with/action. 'docs' will generate
# markdown and HTML; 'uijson' will generate JSON
# -- you shouldn't need to change build/steps/with/path
# -- build/steps/with/inputttl is a single string that is a pipe-delimited list of the
# SKOS vocabulary files in the /vocabulary directory that should be processed.
# leave off the file extensions. NOTE that the files will be assumed to be
# serialized using the Turtle format. Do not enclose the string in quotes, and have no spaces # in the string
# -- build/steps/with/inputvocaburi is a single string that is a pipe-delimited list of the
# skos:ConceptScheme URIs in each vocabulary file. The order of the URIS must match
# the order of the file names. It will be assumed that each file contains only one
# ConceptScheme.Do not enclose the string in quotes, and have no spaces in the string.
name: Process vocabularies
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Vocabulary action
uses: isamplesorg/vocabularyTemplate@main
# input variables 'action' and 'path' are defined in action.yml, and assigned values here
# GitHub creates an environment variable for the input with the name INPUT_<VARIABLE_NAME>
with:
action: docs
path: ${{ github.workspace }}
# provide ttl file names without extensions; the base file name will be
# used for output files with the appropriate extension.
inputttl: test_01|test_02
# these are the URIs for the ConceptScheme; there must be a conceptScheme defined in each vocabulary.
inputvocaburi: test1:testvocabulary|test2:testvocabulary
- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
target-folder: docs #push the contents of the deployment folder into a
# specific directory on the deployment branch
commit-message: "new build of vocabulary display files"
- name: Deploy vocabulary database
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main # The branch the action should deploy to.
folder: cache # The folder the action should deploy.
target-folder: cache #push the contents of the deployment folder into a
# specific directory on the deployment branch
commit-message: "new build of vocabularies.db"