Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
melaasar authored Jul 18, 2024
1 parent cf620c6 commit 4e7b499
Showing 1 changed file with 8 additions and 42 deletions.
50 changes: 8 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 4e7b499

Please sign in to comment.