Skip to content

Commit

Permalink
add release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkeil committed Aug 12, 2024
1 parent 58799a2 commit 9f77118
Showing 1 changed file with 48 additions and 0 deletions.
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

0 comments on commit 9f77118

Please sign in to comment.