From 7d69c972da49e78785c00aa15f33df58b10891a0 Mon Sep 17 00:00:00 2001 From: cmdoret Date: Mon, 24 Feb 2025 16:23:40 +0100 Subject: [PATCH] ci: add high level workflows --- .github/workflows/main-and-pr.yml | 22 ++++++++++++++++++++ .github/workflows/release.yml | 34 +++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/main-and-pr.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/main-and-pr.yml b/.github/workflows/main-and-pr.yml new file mode 100644 index 0000000..290718a --- /dev/null +++ b/.github/workflows/main-and-pr.yml @@ -0,0 +1,22 @@ +name: Main and PR pipeline + +on: + push: + branches: + - main + + workflow_call: + + pull_request: + branches: + - main + +jobs: + checks: + uses: ./.github/workflows/checks.yml + + build: + uses: ./.github/workflows/build.yml + with: + is_release: false + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e195157 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Include ontology assets in the release + +on: + push: + tags: + - "v*" + +jobs: + + build: + uses: ./.github/workflows/build.yml + with: + is_release: true + + make_release: + runs-on: ubuntu-latest + needs: + build + + steps: + + - uses: actions/checkout@v4 + + - name: get schema assets + uses: actions/download-artifact@v4.1.8 + with: + name: schema-bundle + path: build/ + + - name: create release + uses: softprops/action-gh-release@v2 + with: + files: build/* +