From 96cb8a4386df176d5504edc7ffd34dee175d499f Mon Sep 17 00:00:00 2001 From: Jan Martin Keil Date: Tue, 17 Oct 2023 16:54:36 +0200 Subject: [PATCH] add release CI --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..71fee79 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +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: 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@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 \ No newline at end of file