From 9a9b329c30451cb7be0281f3f8a7af60e0dc48c8 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 3 Jun 2024 18:53:21 +0200 Subject: [PATCH] Add files for a JupyterLite demo --- .github/workflows/deploy.yml | 50 ++++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..6bf9526 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,50 @@ +name: Build and Deploy + +on: + push: + branches: + - main + pull_request: + branches: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install the dependencies + run: | + python -m pip install jupyterlite-core jupyterlite-pyodide-kernel + + # install a dev version of the extension + python -m pip install . + - name: Build the JupyterLite site + run: | + jupyter lite build --output-dir dist + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./dist + + deploy: + needs: build + if: github.ref == 'refs/heads/main' + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/README.md b/README.md index 9f18d5c..e1aa0b3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # jupyterlab-codeium [![Github Actions Status](https://github.com/jtpio/jupyterlab-codeium/workflows/Build/badge.svg)](https://github.com/jtpio/jupyterlab-codeium/actions/workflows/build.yml) +[![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://jtpio.github.io/jupyterlab-codeium/lab/index.html) JupyterLab extension to get AI code completions with [Codeium](https://codeium.com/).