Skip to content

Commit

Permalink
add release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkeil committed Oct 17, 2023
1 parent 58799a2 commit c68867d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Release
on:
pull_request:
push:
branches:
- '**'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
build:
runs-on: ubuntu-latest
container: obolibrary/robot:v1.9.5
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Add Release Info
if: github.ref_type == 'tag'
run: |
robot \
annotate \
--input om-2.0.rdf \
--annotation owl:versionInfo "$(echo ${{github.ref_name}}| cut -c2-)" \
--typed-annotation dc:date "$(date +%Y-%m-%d)" xsd:date \
convert \
--format owl \
--output om-2.0.rdf
- name: Generate Different Serializations
run: |
robot \
convert \
--input om-2.0.rdf \
--output om-2.0.ttl \
convert \
--format owl \
--output om-2.0.rdf
- name: Store Artifacts
uses: actions/upload-artifact@v3
with:
path: om-2.0.*
- name: Release Files
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v1
with:
files: |
om-2.0.rdf
om-2.0.ttl
2 changes: 0 additions & 2 deletions om-2.0.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@
<rdfs:label xml:lang="en">Ontology of units of Measure (OM)</rdfs:label>
<rdfs:label xml:lang="nl">Ontologie van Maateenheden (OM)</rdfs:label>
<rdfs:label xml:lang="ja">測定単位のオントロジー (OM)</rdfs:label>
<owl:versionInfo xml:lang="en">2.0.50</owl:versionInfo>
<!-- <dc:identifier>http://www.wurvoc.org/vocabularies/om-2.0/</dc:identifier> -->
<dc:identifier>http://www.ontology-of-units-of-measure.org/vocabularies/om-2/</dc:identifier>
<dc:date>2023/10/10</dc:date>
<rdfs:comment xml:lang="en">The Ontology of units of Measure (OM) 2.0 models concepts and relations important to scientific research. It has a strong focus on units, quantities, measurements, and dimensions.</rdfs:comment>
<rdfs:comment xml:lang="ja">測定単位のオントロジー (Ontology of units of Measure; OM) は,科学技術にとって重要な概念及び関係をモデル化する。OMは,単位・量・測定・次元に特に焦点を当てている。</rdfs:comment>
<wv:logo>http://www.wurvoc.org/images/vocabularies/om-logo.jpg</wv:logo>
Expand Down

0 comments on commit c68867d

Please sign in to comment.