Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Release Pipeline Proposal #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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.6
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 RDF/XML and TTL Serializations in OWL API Style
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@v4
with:
path: om-2.0.*
- name: Release
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v2
with:
name: Ontology of units of Measure (OM) ${{ github.ref_name }}
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.57</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>2024/06/22</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
Loading