From 4e7b4991f72117d6e2bc592dd068dc8cfd761160 Mon Sep 17 00:00:00 2001 From: Maged Elaasar Date: Thu, 18 Jul 2024 08:57:12 -0700 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 50 +++++++--------------------------------- 1 file changed, 8 insertions(+), 42 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c63a90..56d9650 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,16 +2,14 @@ name: CI/CD on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: [ "release272" ] permissions: contents: read jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: Checkout uses: actions/checkout@v3 @@ -22,43 +20,11 @@ jobs: distribution: 'temurin' - name: Setup Gradle uses: gradle/gradle-build-action@v2 + - name: Clone oml + run: | + git clone -b release272 https://github.com/opencaesar/oml.git + cd oml + ./gradlew publishToMavenLocal + cd .. - name: Build run: ./gradlew build - - name: Query - run: ./gradlew owlQuery - - name: Upload - if: ${{ always() }} - uses: actions/upload-artifact@v3 - with: - name: build - path: build/ - - name: Generate Docs - run: ./gradlew generateDocs - - name: Set up Python 3 - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: Install Requirements - run: pip install -r src/ipynb/requirements.txt - - name: Run Notebook - run: python -m nbconvert --execute --to notebook --no-input src/ipynb/index.ipynb --output-dir='build/web' - - name: Convert Notebook to HTML - run: python -m nbconvert --to html --no-input build/web/index.ipynb - - name: Publish - uses: actions/upload-pages-artifact@v1 - with: - path: build/web - - deploy: - needs: build - permissions: - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Deploy - id: deployment - uses: actions/deploy-pages@v1 \ No newline at end of file